Common Response Headers

The following table describes response headers that are common to most AWS S3 responses.

Name Description
Content-Length

The length in bytes of the body in the response.

Type: String

Default: None

Connection

Specfies whether the connection to the server is open or closed.

Type: Enum

Valid Values: open | close

Default: None

Date

The date and time Amazon S3 responded, for example, Wed, 01 Mar 2009 12:00:00 GMT.

Type: String

Default: None

ETag

The entity tag is an MD5 hash of the object that you can use to do conditional GET operations using the If-Modified request tag with the GET request operation. Amazon S3 checks the object against the provided MD5 value. If they do not match, Amazon S3 returns an error. The ETag only reflects changes to the contents of an object, not its metadata.

Type: String

Server

The name of the server that created the response.

Type: String

Default: None

x-amz-delete-marker

Specifies whether the object returned was (true) or was not (false) a Delete Marker.

Type: Boolean

Valid Values: true | false

Default: false

x-amz-id-2

A special token that helps AWS troubleshoot problems.

Type: String

Default: None

x-amz-request-id

A value created by Amazon S3 that uniquely identifies the request. In the unlikely event that you have problems with Amazon S3, AWS can use this value to troubleshoot the problem.

Type: String

Default: None

x-amz-version-id

The version of the object. When you enable versioning, Amazon S3 generates a random number for objects added to a bucket. The value is UTF-8 encoded and URL ready. When you PUT an object in a bucket where versioning has been suspended, the version ID is always null.

Type: String

Valid Values: null | any

URL-ready, UTF-8 encoded string

Default: null