< Previous | Contents | Next >

Checking the existence of a bucket

You use the HTTP HEAD method to check the existence of a bucket. To successfully check the existence of a bucket, you need read permission for the bucket.


If the bucket you specify in the HEAD request does not exist, HCP returns a 404 (Not Found) status code. If the bucket exists but you do not have read permission for it, HCP returns a 403 (Forbidden) status code.


 

Request lineRequest headersResponse headersHTTP status codesExample: Checking the existence of a bucket