|
|
|
@ -95,6 +95,7 @@ const ( |
|
|
|
ErrInvalidQueryParams |
|
|
|
ErrInvalidQuerySignatureAlgo |
|
|
|
ErrExpiredPresignRequest |
|
|
|
ErrExpiredToken |
|
|
|
ErrMalformedExpires |
|
|
|
ErrNegativeExpires |
|
|
|
ErrMaximumExpires |
|
|
|
@ -405,6 +406,11 @@ var errorCodeResponse = map[ErrorCode]APIError{ |
|
|
|
Description: "Request has expired", |
|
|
|
HTTPStatusCode: http.StatusForbidden, |
|
|
|
}, |
|
|
|
ErrExpiredToken: { |
|
|
|
Code: "ExpiredToken", |
|
|
|
Description: "The provided token has expired.", |
|
|
|
HTTPStatusCode: http.StatusBadRequest, |
|
|
|
}, |
|
|
|
ErrMalformedExpires: { |
|
|
|
Code: "AuthorizationQueryParametersError", |
|
|
|
Description: "X-Amz-Expires should be a number", |
|
|
|
|