|
|
@ -65,6 +65,7 @@ const ( |
|
|
|
ErrBadDigest |
|
|
|
ErrBadDigest |
|
|
|
ErrEntityTooSmall |
|
|
|
ErrEntityTooSmall |
|
|
|
ErrEntityTooLarge |
|
|
|
ErrEntityTooLarge |
|
|
|
|
|
|
|
ErrPolicyTooLarge |
|
|
|
ErrIncompleteBody |
|
|
|
ErrIncompleteBody |
|
|
|
ErrInternalError |
|
|
|
ErrInternalError |
|
|
|
ErrInvalidAccessKeyID |
|
|
|
ErrInvalidAccessKeyID |
|
|
@ -398,6 +399,11 @@ var errorCodes = errorCodeMap{ |
|
|
|
Description: "Your proposed upload exceeds the maximum allowed object size.", |
|
|
|
Description: "Your proposed upload exceeds the maximum allowed object size.", |
|
|
|
HTTPStatusCode: http.StatusBadRequest, |
|
|
|
HTTPStatusCode: http.StatusBadRequest, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
ErrPolicyTooLarge: { |
|
|
|
|
|
|
|
Code: "PolicyTooLarge", |
|
|
|
|
|
|
|
Description: "Policy exceeds the maximum allowed document size.", |
|
|
|
|
|
|
|
HTTPStatusCode: http.StatusBadRequest, |
|
|
|
|
|
|
|
}, |
|
|
|
ErrIncompleteBody: { |
|
|
|
ErrIncompleteBody: { |
|
|
|
Code: "IncompleteBody", |
|
|
|
Code: "IncompleteBody", |
|
|
|
Description: "You did not provide the number of bytes specified by the Content-Length HTTP header.", |
|
|
|
Description: "You did not provide the number of bytes specified by the Content-Length HTTP header.", |
|
|
|