mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Add error logical.ErrUpstreamRateLimited and return 502 from RespondCommonError
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user