Error Codes

If a request fails to be processed due to errors, an error response is returned. An error response contains an error code and error details. Table 1 describes all error codes in OBS error responses.

Table 1 List of OBS error codes

Error Code

Description

HTTP Status Code

AccessDenied

Access denied.

403 Forbidden

AccessDenied

The object you specified is immutable, can not delete.

403 Forbidden

AccessForbidden

Insufficient permission.

403 Forbidden

AccountProblem

The operation cannot be successfully performed because your OBS account is abnormal, for example, expired or frozen.

403 Forbidden

AllAccessDisabled

The user has no permission to perform a specific operation.

403 Forbidden

AmbiguousGrantByEmailAddress

The specified email address is associated with multiple accounts.

400 Bad Request

BadDigest

The specified value of Content-MD5 does not match the value received by OBS.

400 Bad Request

BadDomainName

Invalid domain name.

400 Bad Request

BadRequest

Invalid request parameters.

400 Bad Request

BucketAlreadyExists

The requested bucket name already exists. The bucket namespace is shared by all users of OBS. Specify a different name and retry.

409 Conflict

BucketAlreadyOwnedByYou

Your previous request for creating the named bucket succeeded and you already own it.

409 Conflict

BucketExpanding

Indicates that the specified bucket is being expanded.

409 Conflict

BucketNotEmpty

The bucket that you tried to delete is not empty.

409 Conflict

CustomDomainAreadyExist

The configured domain already exists.

400 Bad Request

CustomDomainNotExist

The domain to be operated does not exist.

400 Bad Request

CredentialsNotSupported

This request does not support security credentials.

400 Bad Request

DeregisterUserId

The user has been deregistered.

403 Forbidden

EntityTooSmall

The size of the object to be uploaded exceeds the lower limit.

400 Bad Request

EntityTooLarge

The size of the object to be uploaded exceeds the upper limit.

400 Bad Request

FrozenUserId

The user has been frozen.

403 Forbidden

IllegalLocationConstraintException

The configured region limitation is inconsistent with the region where it resides.

400 Bad Request

IllegalVersioning ConfigurationException

The Versioning configuration specified in the request is invalid.

400 Bad Request

InArrearOrInsufficientBalance

Insufficient permission to perform a specific operation in ACL.

403 Forbidden

IncompleteBody

Incomplete request body.

400 Bad Request

IncorrectNumberOf FilesInPostRequest

Each POST request must contain one file to be uploaded.

400 Bad Request

InlineDataTooLarge

The size of inline data exceeds the upper limit.

400 Bad Request

InsufficientStorageSpace

Insufficient storage space

403 Forbidden

InternalError

An internal error occurs. Retry later

500 Internal Server Error

InvalidAccessKeyId

The provided OBS AK does not exist.

403 Forbidden

InvalidAddressingHeader

The anonymous role must be specified.

N/A

InvalidArgument

Invalid Argument.

400 Bad Request

InvalidBucket

The bucket to be accessed does not exist.

400 Bad Request

InvalidBucketName

The specified bucket name is invalid.

400 Bad Request

InvalidBucketState

Invalid bucket status.

409 Conflict

InvalidBucketStoragePolicy

An invalid new policy is specified during bucket policy modification.

400 Bad Request

InvalidDigest

The specified Content-MD5 is invalid.

400 Bad Request

InvalidEncryptionAlgorithmError

Incorrect encryption algorithm.

400 Bad Request

InvalidLocationConstraint

The specified location constraint is invalid.

400 Bad Request

InvalidObjectState

Invalid object status. The error message is displayed when cold objects are not restored or being restored, or when non-cold objects are restored.

403 Forbidden

InvalidPart

One or more specified parts cannot be found. The parts may not be uploaded or the specified entity tags (ETags) do not match the parts' ETags.

400 Bad Request

InvalidPartOrder

Parts are not listed in ascending order by part number.

400 Bad Request

InvalidPayer

All access to this object is disabled.

403 Forbidden

InvalidPolicyDocument

The content of the form does not meet the conditions specified in the policy document.

400 Bad Request

InvalidRange

The requested range is invalid.

416 Client Requested Range Not Satisfiable

InvalidRedirectLocation

Invalid redirect location.

400 Bad Request

InvalidRequest

Invalid request.

400 Bad Request

InvalidRequestBody

Invalid POST request body.

400 Bad Request

InvalidSecurity

The provided security credentials are invalid.

403 Forbidden

InvalidStorageClass

The specified storage class is invalid.

400 Bad Request

InvalidTargetBucketForLogging

The delivery group has not ACL permission for the target bucket.

400 Bad Request

InvalidURI

The specified URI cannot be parsed.

400 Bad Request

KeyTooLong

The provided key is too long.

400 Bad Request

MalformedACLError

The provided XML file is in incorrect format or does not meet format requirements.

400 Bad Request

MalformedError

The XML format in the request is incorrect.

400 Bad Request

MalformedLoggingStatus

The Logging XML format is incorrect.

400 Bad Request

MalformedPolicy

The check of BucketPolicy does not pass.

400 Bad Request

MalformedPOSTRequest

The body of the POST request is in incorrect format.

400 Bad Request

MalformedQuotaError

The Quota XML format is incorrect.

400 Bad Request

MalformedXML

This error code is returned after you send an XML file in incorrect format, stating "The XML you provided was not well-formed or did not validate against our published schema."

400 Bad Request

MaxMessageLength Exceeded

The request is too long.

400 Bad Request

MaxPostPreDataLength ExceededError

The POST request fields prior to the file to be uploaded are too large.

400 Bad Request

MetadataTooLarge

The size of metadata headers exceeds the upper limit.

400 Bad Request

MethodNotAllowed

The specified method is not allowed against the requested resource.

405 Method Not Allowed

MissingContentLength

The HTTP header Content-Length is not provided.

411 Length Required

MissingRegion

No region in the request and no default region in the system.

400 Bad Request

MissingRequestBodyError

This error code is returned after you send an empty XML file, stating "Request body is empty."

400 Bad Request

MissingRequiredHeader

No header field in the request.

400 Bad Request

MissingSecurityHeader

A required header is not provided.

400 Bad Request

NoSuchBucket

The specified bucket does not exist.

404 Not Found

NoSuchBucketPolicy

Nonexistent bucket policy.

404 Not Found

NoSuchCORSConfiguration

Nonexistent CORS configuration.

404 Not Found

NoSuchCustomDomain

The requested user domain does not exist.

404 Not Found

NoSuchKey

The specified key does not exist.

404 Not Found

NoSuchLifecycleConfiguration

The requested LifeCycle does not exist.

404 Not Found

NoSuchPolicy

The specified policy name does not exist.

404 Not Found

NoSuchUpload

The specified multipart upload does not exist. The upload ID does not exist or the multipart upload has been aborted or completed.

404 Not Found

NoSuchVersion

The specified version ID does not match any existing version.

404 Not Found

NoSuchWebsiteConfiguration

The requested website does not exist.

404 Not Found

NotImplemented

The provided header implies a function that is unavailable.

501 Not Implemented

NotSignedUp

Your account is not signed up for OBS. OBS is available only after you sign up.

403 Forbidden

NotSuchBucketPolicy

The specified bucket does not have a bucket policy.

404 Not Found

ObjectHasAlreadyRestored

The cold objects have been restored and the retention period of the objects cannot be shortened.

409 Conflict

OperationAborted

A conflicting operation is being performed on this resource. Retry later.

409 Conflict

PermanentRedirect

The requested bucket must be addressed using a specified endpoint. Send all future requests to the endpoint.

301 Moved Permanently

PreconditionFailed

At least one of the specified preconditions is not met.

412 Precondition Failed

Redirect

The request is temporarily redirected.

307 Moved Temporarily

RequestIsNotMultiPart Content

A bucket POST request must contain an enclosure-type multipart or the form-data.

400 Bad Request

RequestTimeout

The socket connection to the server has no reads or writes within the timeout period.

400 Bad Request

RequestTimeTooSkewed

The difference between the request time and the server's time is too big.

403 Forbidden

RequestTorrentOfBucket Error

Requesting the bucket's torrent file is not allowed.

400 Bad Request

RestoreAlreadyInProgress

The cold objects are being restored. The request conflicts with another one.

409 Conflict

ServiceNotImplemented

The request method is not implemented by the server.

501 Not Implemented

ServiceNotSupported

The request method is not supported by the server.

409 Conflict

ServiceUnavailable

The server is overloaded or has internal errors.

503 Service Unavailable

SignatureDoesNotMatch

The provided signature does not match the signature calculated by OBS. Check your SK and signature calculation method.

403 Forbidden

SlowDown

The request frequency is high. Reduce your request frequency.

503 Service Unavailable

System Capacity Not enough

Insufficient system capacity.

403 Forbidden

TemporaryRedirect

The request is redirected to the bucket while the domain name server (DNS) is being updated.

307 Moved Temporarily

TooManyBuckets

You have attempted to create more buckets than allowed.

400 Bad Request

TooManyCustomDomains

Too many user domains are configured.

400 Bad Request

TooManyObjectCopied

The number of copied users' objects exceeds the upper limit.

400 Bad Request

TooManyWrongSignature

The request is rejected due to high-frequency errors.

400 Bad Request

UnexpectedContent

This request does not support content.

400 Bad Request

UnresolvableGrantBy EmailAddress

The provided email address does not match any recorded account.

400 Bad Request

UserKeyMustBeSpecified

The user's AK is not carried in the request.

400 Bad Request

WebsiteRedirect

The website request lacks bucketName.

301 Moved Permanently

KMS.DisabledException

The master key is disabled in server-side encryption with KMS-managed keys (SSE-KMS) mode.

400 Bad Request

KMS.NotFoundException

The master key does not exist in SSE-KMS mode.

400 Bad Request

InvalidTagError

An invalid tag is provided when configuring the bucket tag.

400 Bad Request

MalformedXMLError

The provided XML format is incorrect when configuring the bucket tag.

400 Bad Request

NoSuchTagSet

The specified bucket is not configured with a tag.

404 Not Found