Menu
Amazon Simple Storage Service
API Reference (API Version 2006-03-01)

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

Content-Type

The MIME type of the content. For example, Content-Type: text/html; charset=utf-8

Type: String

Default: None

Connection

specifies 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 2006 12:00:00 GMT.

Type: String

Default: None

ETag

The entity tag is a hash of the object. The ETag reflects changes only to the contents of an object, not its metadata. The ETag may or may not be an MD5 digest of the object data. Whether or not it is depends on how the object was created and how it is encrypted as described below:

  • Objects created by the PUT Object, POST Object, or Copy operation, or through the AWS Management Console, and are encrypted by SSE-S3 or plaintext, have ETags that are an MD5 digest of their object data.

  • Objects created by the PUT Object, POST Object, or Copy operation, or through the AWS Management Console, and are encrypted by SSE-C or SSE-KMS, have ETags that are not an MD5 digest of their object data.

  • If an object is created by either the Multipart Upload or Part Copy operation, the ETag is not an MD5 digest, regardless of the method of encryption.

Type: String

Server

The name of the server that created the response.

Type: String

Default: AmazonS3

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