Object Storage Service

Products

Object Storage Service

Error Response

When an error and a message body in the application/xml format occur to the user’s access to OSS; OSS will return a proper 3xx, 4xx or 5xx HTTP Status Code to the user.

The following is a message body example of error response:

<Error>
    <statusCode>404</statusCode>
    <Code>NoSuchBucket</Code>
    <Message>The specified bucket does not exist.</Message>
    <Resource>/henry-dev-test-bucket123123123123</Resource>
    <RequestId>956F69119AE3958B</RequestId>
</Error>

For the explanation of elements included in the error message body in the example, please see the following table:
Name Description Type
statusCode Status Code Numeric Value
code Error Code is the only identifier for error, which is used to identify error scenarios Character String
Message Detailed error information given by OSS Character String
Resource Resource Address: Bucket address or Object address. Character String
RequestId When the request is sent, the server will automatically generate a unique ID for the request. In case of any problem on use, the request-id can assist with OSS location problem faster. Character String

Error Code List

3XX Type Error

Error Code Description HTTP Status Code
PermanentRedirect The location of the resource has been permanently changed, please use HTTP Location to redirect to the correct new location 301
TemporaryRedirect The location of the resource has been temporarily changed, please use HTTP Location to redirect to the correct new location 302
Redirect Temporary Redirection 307
TemporaryRedirect You are redirected temporarily during DNS update period 307

4XX Type Error

Error Code Description HTTP Status Code
POLICYError The bucket policy is null 400
RequestTimeOut Reading data is time-out. Check whether the network is too slow or the number of concurrent uploads is too large 400
SlowDown Please reduce access frequency 400
RequestTimeTooSkewed The request time exceeds the valid time of the permission 400
InvalidCompressError Compress need bucket acl public-read-write. 400
TooManyBuckets The number of buckets created by you exceeds the limit 400
CompressOjectsNumError The number of packed files is wrong, and your range of packing shall be 1-100 400
TooManyMultipartUploads The number of initialized multipart uploads exceeds the limit 400
InvalidParamError Request Parameter Error 400
EFFECT referer can not apply effect 400
UserAlreadyHasKeys the user already has keys 400
ConnectionLost The connection is missing 400
InvalidParamError Request Parameter Error 400
SignatureDoesNotMatch The signature provided does not comply with the rule 403
SignatureDoesNotMatchV2 The signature version is wrong; the signature provided by you is not supported, and we support signature Version 4. 403
MethodNotAllowed The specified method is not allowed against this resource 405
InvalidPayer The access to the object is denied 403
InvalidAccessKeyId AccessKey does not exist 403
SignatureDoesNotMatch The signature provided does not comply with the rule 403
AccessForbidden The signature or permission is wrong, and access is denied 403
InvalidBucketName The bucket name is illegal 400
InvalidMaxAge The assigned MaxAge is illegal 400
InvalidLocationConstraint The assigned location restriction is illegal 400
InvalidObjectKey The file name is illegal 400
InvalidCompressType The packing type is illegal, and only zip is supported 400
InvalidContentLengthError http header content-length error 400
InvalidContentMD5Error http header content-md5 error 400
EntityTooLarge The size of the upload file exceeds the required maximum value 413
CORSConfigurationTooLarge The CORS configuration file exceeds the allowed maximum value 400
InvalidCORSConfiguration The setting of CORS is illegal 400
InvalidWebsiteConfiguration Static website hosting setting is illegal 400
WebsiteConfigurationTooLarge The static website hosting setting exceeds the allowed maximum value 400
ImgProtectedConditionTooLarge The original image protection exceeds the allowed maximum value 400
MissingContentLength Header Content-Length is absent 400
MissingContentMD5 Content-MD5 is absent in the request header 400
ContentDispositionTooLong Content Disposition is too long 400
BadDigest The assigned Content-MD5 does not match with the one received by us 400
BadContentLength The assigned file ContentLength does not match with the one received by us 400
InvalidRange The requested file range is illegal 416
NotSupportMultiRange The multiple ranges are not supported 416
KeyTooLong The file name is too long 400
InvalidPartOrder The numbers of upload by parts are not serial 400
MalformedPolicy The policy format is wrong 400
IncorrectNumberOfFilesInPostRequest Post request only allows uploading one file every time 400
InvalidToken Illegal Token 400
BadRequest Wrong Request 400
InvalidURI The URI is illegal 400
InvalidArgument The request parameter is illegal 400
NoSuchDomain The assigned domain name does not exist 404
InvalidPolicyDocument The policy configuration file is illegal 400
InvalidImgProtectedCondition The original image protection configuration file is illegal 400
MalformedJson The JSON format is wrong 400
MissingSecurityHeader The necessary Header is absent 400
IncompleteBody Numerical Value Not Assigned by Content-Length Request Header 400
AccessDenied The signature or permission is wrong, and access is denied 403
AccountProblem Your account denies this operation 403
AccessKeyLimited Your signature or permission is stopped by policy 403
AccountArrear The account has arrears 403
BucketAlreadyExists The bucket name already exists and is unique globally 409
BucketAlreadyOwnedByYou You have created the Buckett 409
BucketNotEmpty The bucket cannot be blank or deleted 409
BucketHasMutiUploads There is a multipart upload task, and the bucket cannot be deleted 409
BucketHasReplicationConfiguration The bucket has cross-region replication rules and cannot be deleted 400
BucketHasPictureStyle The bucket has image style and cannot be deleted 400
InvalidPart The parts are absent 400
TooManyParts There are too many parts 400
NoSuchCORSConfiguration CORS configuration does not exist 404
NoSuchWebsiteConfiguration Static website hosting configuration does not exist 404
NoSuchBucket The bucket does not existt 404
NoSuchReplicationConfiguration The cross-region replication configuration does not exist 404
NoSuchImgProtectedCondition The original image protection configuration does not exist 404
NoSuchKey The assigned file name does not exist 404
NoSuchUpload The assigned multipart upload does not exist 404
5XX Type Error
Error Code Description HTTP Status Code
InternalErrror Server Internal Error 500
DecryptError The decryption is wrong, and the file is encrypted with a wrong method 500
NotImplemented There is an unmanageable method in the Header 501
ServiceUnavailable The server is busy, please try again 503
Update Time:2019-05-28 16:47:17