HEAD Bucket
The HEAD Bucket operation determines whether a bucket exists and if you have permission to access it. To use this operation, you must have permissions to list content in the share target.
Request Headers
The HEAD Bucket operation uses only request headers that are common to all operations. For more information, see table "Common Supported Request Headers" in Supported Common Request Headers.
Response Headers
The HEAD Bucket operation uses only response headers that are common to most responses. For more information, see table "Supported Response Headers" in Supported Common Response Headers.
Normal Response Code
200 OK
Note:
The HEAD Bucket operation returns the200 OK
response code when both the bucket and access permissions to the bucket exist.
Error Response Codes
-
404 Not Found. This response code is returned when the bucket does not exist.
-
403 Forbidden
. This response code is returned when permissions to access the bucket do not exist.
For general information about S3 errors and a list of error codes, see S3 Client Error Handling Reference.