Amazon Simple Storage Service
Developer Guide (API Version 2006-03-01)

The REST Error Response

If a REST request results in an error, the HTTP reply has:

  • An XML error document as the response body

  • Content-Type: application/xml

  • An appropriate 3xx, 4xx, or 5xx HTTP status code

Following is an example of a REST Error Response.

<?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>

For more information about Amazon S3 errors, go to ErrorCodeList.

Response Headers

Following are response headers returned by all operations:

  • x-amz-request-id: A unique ID assigned to each request by the system. In the unlikely event that you have problems with Amazon S3, Amazon can use this to help troubleshoot the problem.

  • x-amz-id-2: A special token that will help us to troubleshoot problems.

On this page: