Errors

This section provides reference information about AnzenStore errors.

AnzenStore Error Responses

When an error occurs, the header information contains the following:

  • Content-Type: application/xml
  • An appropriate 3xx, 4xx, or 5xx HTTP status code

The body of the response also contains information about the error. The following sample error response shows the structure of response elements common to all REST error responses.

<?xml version="1.0" encoding="UTF-8"?>
<Error>
  <Code>NoSuchKey</Code>
  <Message>The resource you requested does not exist</Message>
  <Resource>/mybucket/myfoto.jpg</Resource> 
  <RequestId>4442587FB7D0A2F9</RequestId>
</Error>

The following table explains the AnzenStore error response elements:

NameDescription
CodeThe error code is a string that uniquely identifies an error condition. It is meant to be read and understood by programs that detect and handle errors by type.

Type: String

Ancestor: Error
ErrorContainer for all error elements.

Type: Container

Ancestor: None
MessageThe error message contains a generic description of the error condition in English. It is intended for a human audience. Simple programs display the message directly to the end user if they encounter an error condition they don't know how or don't care to handle. Sophisticated programs with more exhaustive error handling and proper internationalization are more likely to ignore the error message.

Type: String

Ancestor: Error
RequestIdID of the request associated with the error.

Type: String

Ancestor: Error
ResourceThe bucket or object that is involved in the error.

Type: String

Ancestor: Error

Error Codes

The following table lists AnzenStore error codes:

Error CodeDescriptionHTTP Status Code
AccessControlListNotSupportedThe bucket does not allow ACLs.400 Bad Request
AccessDeniedAccess Denied403 Forbidden
AccessPointAlreadyOwnedByYouAn access point with an identical name already exists in your account.409 Conflict
AccountProblemThere is a problem with your account that prevents the operation from completing successfully.403 Forbidden
AllAccessDisabledAll access to this resource has been disabled.403 Forbidden
AmbiguousGrantByEmailAddressThe email address that you provided is associated with more than one account.400 Bad Request
AuthorizationHeaderMalformedThe authorization header that you provided is not valid.400 Bad Request
AuthorizationQueryParametersErrorThe authorization query parameters that you provided are not valid.400 Bad Request
BadDigestThe Content-MD5 or checksum value that you specified did not match what the server received.400 Bad Request
BucketAlreadyExistsThe requested bucket name is not available. The bucket namespace is shared by all users of the system. Specify a different name and try again.409 Conflict
BucketAlreadyOwnedByYouThe bucket that you tried to create already exists, and you own it.409 Conflict
BucketNotEmptyThe bucket that you tried to delete is not empty.409 Conflict
ClientTokenConflictYour Multi-Region Access Point idempotency token was already used for a different request.409 Conflict
CredentialsNotSupportedThis request does not support credentials.400 Bad Request
CrossLocationLoggingProhibitedCross-Region logging is not allowed. Buckets in one Region cannot log information to a bucket in another Region.403 Forbidden
EntityTooSmallYour proposed upload is smaller than the minimum allowed object size.400 Bad Request
EntityTooLargeYour proposed upload exceeds the maximum allowed object size.400 Bad Request
ExpiredTokenThe provided token has expired.400 Bad Request
IllegalLocationConstraintExceptionYou are trying to access a bucket from a different Region than where the bucket exists. To avoid this error, use the --region option.400 Bad Request
IllegalVersioningConfigurationExceptionThe versioning configuration specified in the request is not valid.400 Bad Request
IncompleteBodyYou did not provide the number of bytes specified by the Content-Length HTTP header.400 Bad Request
IncorrectEndpointThe specified bucket exists in another Region. Direct requests to the correct endpoint.400 Bad Request
IncorrectNumberOfFilesInPostRequestPOST requires exactly one file upload per request.400 Bad Request
InlineDataTooLargeThe inline data exceeds the maximum allowed size.400 Bad Request
InternalErrorAn internal error occurred. Try again.500 Internal Server Error
InvalidAccessKeyIdThe access key ID that you provided does not exist in our records.403 Forbidden
InvalidAccessPointThe specified access point name or account is not valid.400 Bad Request
InvalidAccessPointAliasErrorThe specified access point alias name is not valid.400 Bad Request
InvalidAddressingHeaderYou must specify the Anonymous role.N/A
InvalidArgumentThis error might occur for the following reasons: The specified argument was not valid. The request was missing a required header. The specified argument was incomplete or in the wrong format. The specified argument must have a length greater than or equal to 3.400 Bad Request
InvalidBucketAclWithObjectOwnershipBucket cannot have ACLs set with ObjectOwnership's BucketOwnerEnforced setting.400 Bad Request
InvalidBucketNameThe specified bucket is not valid.400 Bad Request
InvalidBucketStateThe request is not valid for the current state of the bucket.409 Conflict
InvalidDigestThe Content-MD5 or checksum value that you specified is not valid.400 Bad Request
InvalidEncryptionAlgorithmErrorThe encryption request that you specified is not valid. The valid value is AES256.400 Bad Request
InvalidLocationConstraintThe specified location (Region) constraint is not valid. For more information about selecting a Region for your buckets, see Buckets overview.400 Bad Request
InvalidObjectStateThe operation is not valid for the current state of the object.403 Forbidden
InvalidPartOne or more of the specified parts could not be found. The part might not have been uploaded, or the specified entity tag might not have matched the part's entity tag.400 Bad Request
InvalidPartOrderThe list of parts was not in ascending order. The parts list must be specified in order by part number.400 Bad Request
InvalidPayerAll access to this object has been disabled. For further assistance, see Contact Us.403 Forbidden
InvalidPolicyDocumentThe content of the form does not meet the conditions specified in the policy document.400 Bad Request
InvalidRangeThe requested range is not valid for the request. Try another range.416 Requested Range Not Satisfiable
InvalidRequestThis error might occur for the following reasons: The request is using the wrong signature version. Use AWS4-HMAC-SHA256 (Signature Version 4). An access point can be created only for an existing bucket. The access point is not in a state where it can be deleted. An access point can be listed only for an existing bucket. The next token is not valid. At least one action must be specified in a lifecycle rule. At least one lifecycle rule must be specified. The number of lifecycle rules must not exceed the allowed limit of 1000 rules. The range for the MaxResults parameter is not valid. SOAP requests must be made over an HTTPS connection. Transfer Acceleration is not supported for buckets with non-DNS compliant names. Transfer Acceleration is not supported for buckets with periods (.) in their names. The Transfer Acceleration endpoint supports only virtual style requests. Transfer Acceleration is not configured on this bucket. Transfer Acceleration is disabled on this bucket. Transfer Acceleration is not supported on this bucket. Transfer Acceleration cannot be enabled on this bucket. Conflicting values provided in HTTP headers and query parameters. Conflicting values provided in HTTP headers and POST form fields. CopyObject request made on objects larger than 5GB in size.400 Bad Request
InvalidSecurityThe provided security credentials are not valid.403 Forbidden
InvalidSOAPRequestThe SOAP request body is not valid.400 Bad Request
InvalidStorageClassThe storage class that you specified is not valid.400 Bad Request
InvalidTargetBucketForLoggingThe target bucket for logging either does not exist, is not owned by you, or does not have the appropriate grants for the log-delivery group.400 Bad Request
InvalidTokenThe provided token is malformed or otherwise not valid.400 Bad Request
InvalidURIThe specified URI couldn't be parsed.400 Bad Request
KeyTooLongErrorYour key is too long.400 Bad Request
MalformedACLErrorThe ACL that you provided was not well formed or did not validate against our published schema.400 Bad Request
MalformedPOSTRequestThe body of your POST request is not well-formed multipart/form-data.400 Bad Request
MalformedXMLThe XML that you provided was not well formed or did not validate against our published schema.400 Bad Request
MaxMessageLengthExceededYour request was too large.400 Bad Request
MaxPostPreDataLengthExceededErrorYour POST request fields preceding the upload file were too large.400 Bad Request
MetadataTooLargeYour metadata headers exceed the maximum allowed metadata size.400 Bad Request
MethodNotAllowedThe specified method is not allowed against this resource.405 Method Not Allowed
MissingAttachmentA SOAP attachment was expected, but none was found.N/A
MissingContentLengthYou must provide the Content-Length HTTP header.411 Length Required
MissingRequestBodyErrorYou sent an empty XML document as a request.400 Bad Request
MissingSecurityElementThe SOAP 1.1 request is missing a security element.400 Bad Request
MissingSecurityHeaderYour request is missing a required header.400 Bad Request
NoLoggingStatusForKeyThere is no such thing as a logging status subresource for a key.400 Bad Request
NoSuchBucketThe specified bucket does not exist.404 Not Found
NoSuchBucketPolicyThe specified bucket does not have a bucket policy.404 Not Found
NoSuchCORSConfigurationThe specified bucket does not have a CORS configuration.404 Not Found
NoSuchKeyThe specified key does not exist.404 Not Found
NoSuchLifecycleConfigurationThe specified lifecycle configuration does not exist.404 Not Found
NoSuchMultiRegionAccessPointThe specified Multi-Region Access Point does not exist.404 Not Found
NoSuchWebsiteConfigurationThe specified bucket does not have a website configuration.404 Not Found
NoSuchTagSetThe specified tag does not exist.404 Not Found
NoSuchUploadThe specified multipart upload does not exist. The upload ID might not be valid, or the multipart upload might have been aborted or completed.404 Not Found
NoSuchVersionThe version ID specified in the request does not match an existing version.404 Not Found
NotImplementedA header that you provided implies functionality that is not implemented.501 Not Implemented
NotModifiedThe resource was not changed.304 Not Modified
NotSignedUpYour account is not signed up for the AnzenStore service.403 Forbidden
OwnershipControlsNotFoundErrorThe bucket ownership controls were not found.404 Not Found
OperationAbortedA conflicting conditional operation is currently in progress against this resource. Try again.409 Conflict
PermanentRedirectThe bucket that you are attempting to access must be addressed using the specified endpoint. Send all future requests to this endpoint.301 Moved Permanently
PermanentRedirectControlErrorThe API operation you are attempting to access must be addressed using the specified endpoint. Send all future requests to this endpoint.301 Moved Permanently
PreconditionFailedAt least one of the preconditions that you specified did not hold.412 Precondition Failed
RedirectTemporary redirect. You are being redirected to the bucket while the Domain Name System (DNS) server is being updated.307 Temporary Redirect
RequestHeaderSectionTooLargeThe request header and query parameters used to make the request exceed the maximum allowed size.400 Bad Request
RequestIsNotMultiPartContentA bucket POST request must be of the enclosure-type multipart/form-data.412 Precondition Failed
RequestTimeoutYour socket connection to the server was not read from or written to within the timeout period.400 Bad Request
RequestTimeTooSkewedThe difference between the request time and the server's time is too large.403 Forbidden
RequestTorrentOfBucketErrorRequesting the torrent file of a bucket is not permitted.400 Bad Request
RestoreAlreadyInProgressThe object restore is already in progress.409 Conflict
ServerSideEncryptionConfigurationNotFoundErrorThe server-side encryption configuration was not found.400 Bad Request
ServiceUnavailableService is unable to handle request.503 Service Unavailable
SignatureDoesNotMatchThe request signature that the server calculated does not match the signature that you provided. Check your secret access key and signing method. For more information, see REST Authentication and SOAP Authentication.403 Forbidden
SlowDownPlease reduce your request rate.503 Slow Down
TemporaryRedirectYou are being redirected to the bucket while the Domain Name System (DNS) server is being updated.307 Temporary Redirect
TokenRefreshRequiredThe provided token must be refreshed.400 Bad Request
TooManyAccessPointsYou have attempted to create more access points than are allowed for an account.400 Bad Request
TooManyBucketsYou have attempted to create more buckets than are allowed for an account.400 Bad Request
TooManyMultiRegionAccessPointregionsErrorYou have attempted to create a Multi-Region Access Point with more Regions than are allowed for an account.400 Bad Request
TooManyMultiRegionAccessPointsYou have attempted to create more Multi-Region Access Points than are allowed for an account.400 Bad Request
UnauthorizedAccessErrorApplicable in China Regions only. Returned when a request is made to a bucket that doesn't have an ICP license. For more information, see ICP Recordal.403 Forbidden
UnexpectedContentThis request contains unsupported content.400 Bad Request
UnresolvableGrantByEmailAddressThe email address that you provided does not match any account on record.400 Bad Request
UserKeyMustBeSpecifiedThe bucket POST request must contain the specified field name. If it is specified, check the order of the fields.400 Bad Request
NoSuchAccessPointThe specified access point does not exist.404 Not Found
InvalidTagYour request contains tag input that is not valid. For example, your request might contain duplicate keys, keys or values that are too long, or system tags.400 Bad Request