< Previous | Contents | Next >

Response status line

The status line returned in response to an HS3 request specifies the version of HTTP on which the HS3 API is based and an HTTP status code that indicates the outcome of the request. HTTP status codes in the 2xx range indicate that the requested operation was successful. HTTP status codes in the 3xx, 4xx, and 5xx ranges, typically indicate that an error occurred and HCP did not perform the requested operation.


Here’s an example of a response status line that indicates that the requested operation was successful:


HTTP/1.1 200 OK


Here’s an example of a response status line for an unsuccessful operation:


HTTP/1.1 409 Conflict


Chapter 4: Requests and responses 57

Responses


For the correspondence between HTTP status codes and errors that can be reported in an error request body, see “Error codes” on page 59. For the status codes that are specific to certain requests, see the individual request descriptions in Chapter 5, “Working with buckets,” on page 65 and Chapter 6, “Working with objects,” on page 125.