|
|
@ -103,6 +103,7 @@ const ( |
|
|
|
ErrNegativeExpires |
|
|
|
ErrNegativeExpires |
|
|
|
ErrAuthHeaderEmpty |
|
|
|
ErrAuthHeaderEmpty |
|
|
|
ErrExpiredPresignRequest |
|
|
|
ErrExpiredPresignRequest |
|
|
|
|
|
|
|
ErrRequestNotReadyYet |
|
|
|
ErrUnsignedHeaders |
|
|
|
ErrUnsignedHeaders |
|
|
|
ErrMissingDateHeader |
|
|
|
ErrMissingDateHeader |
|
|
|
ErrInvalidQuerySignatureAlgo |
|
|
|
ErrInvalidQuerySignatureAlgo |
|
|
@ -448,6 +449,11 @@ var errorCodeResponse = map[APIErrorCode]APIError{ |
|
|
|
Description: "Request has expired", |
|
|
|
Description: "Request has expired", |
|
|
|
HTTPStatusCode: http.StatusForbidden, |
|
|
|
HTTPStatusCode: http.StatusForbidden, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
ErrRequestNotReadyYet: { |
|
|
|
|
|
|
|
Code: "AccessDenied", |
|
|
|
|
|
|
|
Description: "Request is not valid yet", |
|
|
|
|
|
|
|
HTTPStatusCode: http.StatusForbidden, |
|
|
|
|
|
|
|
}, |
|
|
|
// FIXME: Actual XML error response also contains the header which missed in lsit of signed header parameters.
|
|
|
|
// FIXME: Actual XML error response also contains the header which missed in lsit of signed header parameters.
|
|
|
|
ErrUnsignedHeaders: { |
|
|
|
ErrUnsignedHeaders: { |
|
|
|
Code: "AccessDenied", |
|
|
|
Code: "AccessDenied", |
|
|
|