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:
Name | Description |
---|---|
Code | The 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 |
Error | Container for all error elements. Type: Container Ancestor: None |
Message | The 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 |
RequestId | ID of the request associated with the error. Type: String Ancestor: Error |
Resource | The bucket or object that is involved in the error. Type: String Ancestor: Error |
Error Codes
The following table lists AnzenStore error codes:
Error Code | Description | HTTP Status Code |
---|---|---|
AccessControlListNotSupported | The bucket does not allow ACLs. | 400 Bad Request |
AccessDenied | Access Denied | 403 Forbidden |
AccessPointAlreadyOwnedByYou | An access point with an identical name already exists in your account. | 409 Conflict |
AccountProblem | There is a problem with your account that prevents the operation from completing successfully. | 403 Forbidden |
AllAccessDisabled | All access to this resource has been disabled. | 403 Forbidden |
AmbiguousGrantByEmailAddress | The email address that you provided is associated with more than one account. | 400 Bad Request |
AuthorizationHeaderMalformed | The authorization header that you provided is not valid. | 400 Bad Request |
AuthorizationQueryParametersError | The authorization query parameters that you provided are not valid. | 400 Bad Request |
BadDigest | The Content-MD5 or checksum value that you specified did not match what the server received. | 400 Bad Request |
BucketAlreadyExists | The 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 |
BucketAlreadyOwnedByYou | The bucket that you tried to create already exists, and you own it. | 409 Conflict |
BucketNotEmpty | The bucket that you tried to delete is not empty. | 409 Conflict |
ClientTokenConflict | Your Multi-Region Access Point idempotency token was already used for a different request. | 409 Conflict |
CredentialsNotSupported | This request does not support credentials. | 400 Bad Request |
CrossLocationLoggingProhibited | Cross-Region logging is not allowed. Buckets in one Region cannot log information to a bucket in another Region. | 403 Forbidden |
EntityTooSmall | Your proposed upload is smaller than the minimum allowed object size. | 400 Bad Request |
EntityTooLarge | Your proposed upload exceeds the maximum allowed object size. | 400 Bad Request |
ExpiredToken | The provided token has expired. | 400 Bad Request |
IllegalLocationConstraintException | You 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 |
IllegalVersioningConfigurationException | The versioning configuration specified in the request is not valid. | 400 Bad Request |
IncompleteBody | You did not provide the number of bytes specified by the Content-Length HTTP header. | 400 Bad Request |
IncorrectEndpoint | The specified bucket exists in another Region. Direct requests to the correct endpoint. | 400 Bad Request |
IncorrectNumberOfFilesInPostRequest | POST requires exactly one file upload per request. | 400 Bad Request |
InlineDataTooLarge | The inline data exceeds the maximum allowed size. | 400 Bad Request |
InternalError | An internal error occurred. Try again. | 500 Internal Server Error |
InvalidAccessKeyId | The access key ID that you provided does not exist in our records. | 403 Forbidden |
InvalidAccessPoint | The specified access point name or account is not valid. | 400 Bad Request |
InvalidAccessPointAliasError | The specified access point alias name is not valid. | 400 Bad Request |
InvalidAddressingHeader | You must specify the Anonymous role. | N/A |
InvalidArgument | This 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 |
InvalidBucketAclWithObjectOwnership | Bucket cannot have ACLs set with ObjectOwnership's BucketOwnerEnforced setting. | 400 Bad Request |
InvalidBucketName | The specified bucket is not valid. | 400 Bad Request |
InvalidBucketState | The request is not valid for the current state of the bucket. | 409 Conflict |
InvalidDigest | The Content-MD5 or checksum value that you specified is not valid. | 400 Bad Request |
InvalidEncryptionAlgorithmError | The encryption request that you specified is not valid. The valid value is AES256. | 400 Bad Request |
InvalidLocationConstraint | The specified location (Region) constraint is not valid. For more information about selecting a Region for your buckets, see Buckets overview. | 400 Bad Request |
InvalidObjectState | The operation is not valid for the current state of the object. | 403 Forbidden |
InvalidPart | One 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 |
InvalidPartOrder | The list of parts was not in ascending order. The parts list must be specified in order by part number. | 400 Bad Request |
InvalidPayer | All access to this object has been disabled. For further assistance, see Contact Us. | 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 not valid for the request. Try another range. | 416 Requested Range Not Satisfiable |
InvalidRequest | This 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 |
InvalidSecurity | The provided security credentials are not valid. | 403 Forbidden |
InvalidSOAPRequest | The SOAP request body is not valid. | 400 Bad Request |
InvalidStorageClass | The storage class that you specified is not valid. | 400 Bad Request |
InvalidTargetBucketForLogging | The 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 |
InvalidToken | The provided token is malformed or otherwise not valid. | 400 Bad Request |
InvalidURI | The specified URI couldn't be parsed. | 400 Bad Request |
KeyTooLongError | Your key is too long. | 400 Bad Request |
MalformedACLError | The ACL that you provided was not well formed or did not validate against our published schema. | 400 Bad Request |
MalformedPOSTRequest | The body of your POST request is not well-formed multipart/form-data. | 400 Bad Request |
MalformedXML | The XML that you provided was not well formed or did not validate against our published schema. | 400 Bad Request |
MaxMessageLengthExceeded | Your request was too large. | 400 Bad Request |
MaxPostPreDataLengthExceededError | Your POST request fields preceding the upload file were too large. | 400 Bad Request |
MetadataTooLarge | Your metadata headers exceed the maximum allowed metadata size. | 400 Bad Request |
MethodNotAllowed | The specified method is not allowed against this resource. | 405 Method Not Allowed |
MissingAttachment | A SOAP attachment was expected, but none was found. | N/A |
MissingContentLength | You must provide the Content-Length HTTP header. | 411 Length Required |
MissingRequestBodyError | You sent an empty XML document as a request. | 400 Bad Request |
MissingSecurityElement | The SOAP 1.1 request is missing a security element. | 400 Bad Request |
MissingSecurityHeader | Your request is missing a required header. | 400 Bad Request |
NoLoggingStatusForKey | There is no such thing as a logging status subresource for a key. | 400 Bad Request |
NoSuchBucket | The specified bucket does not exist. | 404 Not Found |
NoSuchBucketPolicy | The specified bucket does not have a bucket policy. | 404 Not Found |
NoSuchCORSConfiguration | The specified bucket does not have a CORS configuration. | 404 Not Found |
NoSuchKey | The specified key does not exist. | 404 Not Found |
NoSuchLifecycleConfiguration | The specified lifecycle configuration does not exist. | 404 Not Found |
NoSuchMultiRegionAccessPoint | The specified Multi-Region Access Point does not exist. | 404 Not Found |
NoSuchWebsiteConfiguration | The specified bucket does not have a website configuration. | 404 Not Found |
NoSuchTagSet | The specified tag does not exist. | 404 Not Found |
NoSuchUpload | The 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 |
NoSuchVersion | The version ID specified in the request does not match an existing version. | 404 Not Found |
NotImplemented | A header that you provided implies functionality that is not implemented. | 501 Not Implemented |
NotModified | The resource was not changed. | 304 Not Modified |
NotSignedUp | Your account is not signed up for the AnzenStore service. | 403 Forbidden |
OwnershipControlsNotFoundError | The bucket ownership controls were not found. | 404 Not Found |
OperationAborted | A conflicting conditional operation is currently in progress against this resource. Try again. | 409 Conflict |
PermanentRedirect | The bucket that you are attempting to access must be addressed using the specified endpoint. Send all future requests to this endpoint. | 301 Moved Permanently |
PermanentRedirectControlError | The API operation you are attempting to access must be addressed using the specified endpoint. Send all future requests to this endpoint. | 301 Moved Permanently |
PreconditionFailed | At least one of the preconditions that you specified did not hold. | 412 Precondition Failed |
Redirect | Temporary redirect. You are being redirected to the bucket while the Domain Name System (DNS) server is being updated. | 307 Temporary Redirect |
RequestHeaderSectionTooLarge | The request header and query parameters used to make the request exceed the maximum allowed size. | 400 Bad Request |
RequestIsNotMultiPartContent | A bucket POST request must be of the enclosure-type multipart/form-data. | 412 Precondition Failed |
RequestTimeout | Your socket connection to the server was not read from or written to within the timeout period. | 400 Bad Request |
RequestTimeTooSkewed | The difference between the request time and the server's time is too large. | 403 Forbidden |
RequestTorrentOfBucketError | Requesting the torrent file of a bucket is not permitted. | 400 Bad Request |
RestoreAlreadyInProgress | The object restore is already in progress. | 409 Conflict |
ServerSideEncryptionConfigurationNotFoundError | The server-side encryption configuration was not found. | 400 Bad Request |
ServiceUnavailable | Service is unable to handle request. | 503 Service Unavailable |
SignatureDoesNotMatch | The 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 |
SlowDown | Please reduce your request rate. | 503 Slow Down |
TemporaryRedirect | You are being redirected to the bucket while the Domain Name System (DNS) server is being updated. | 307 Temporary Redirect |
TokenRefreshRequired | The provided token must be refreshed. | 400 Bad Request |
TooManyAccessPoints | You have attempted to create more access points than are allowed for an account. | 400 Bad Request |
TooManyBuckets | You have attempted to create more buckets than are allowed for an account. | 400 Bad Request |
TooManyMultiRegionAccessPointregionsError | You have attempted to create a Multi-Region Access Point with more Regions than are allowed for an account. | 400 Bad Request |
TooManyMultiRegionAccessPoints | You have attempted to create more Multi-Region Access Points than are allowed for an account. | 400 Bad Request |
UnauthorizedAccessError | Applicable 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 |
UnexpectedContent | This request contains unsupported content. | 400 Bad Request |
UnresolvableGrantByEmailAddress | The email address that you provided does not match any account on record. | 400 Bad Request |
UserKeyMustBeSpecified | The bucket POST request must contain the specified field name. If it is specified, check the order of the fields. | 400 Bad Request |
NoSuchAccessPoint | The specified access point does not exist. | 404 Not Found |
InvalidTag | Your 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 |