Add error logical.ErrUpstreamRateLimited and return 502 from RespondCommonError

This commit is contained in:
Clint Shryock
2018-08-28 15:59:02 -05:00
parent b96fc7dfb9
commit c5ad933ab0
3 changed files with 89 additions and 0 deletions

View File

@@ -20,6 +20,10 @@ var (
// ErrMultiAuthzPending is returned if the the request needs more
// authorizations
ErrMultiAuthzPending = errors.New("request needs further approval")
// ErrUpstreamRateLimited is returned when Vault recieves a rate limited
// response from an upstream
ErrUpstreamRateLimited = errors.New("upstream rate limited")
)
type HTTPCodedError interface {