When an HTTP request is sent to a server, the server sends back an HTTP response message. The HTTP response message consists of an HTTP header and, optionally, a message body. The response header contains an HTTP status code that gives the status of the request.
The following table contains a list of HTTP status codes, their descriptions, and the types of HTTP requests that can generate each status code.
Status code | Meaning | Description | Methods |
---|---|---|---|
200 | OK | The request was executed successfully. |
PATCH POST |
400 | Bad Request | The request body contains one or more of these:
|
PATCH POST |
401 | Unauthorized | Your access is not authorized. Possible reasons:
|
PATCH POST |
404 | Not Found | The resource you are trying to retrieve, edit, or delete cannot be found. |
PATCH POST |
405 | Method Not Allowed | A request was made using a request method not supported by that resource; for example, using GET with a form that needs data to be presented using POST. |
PATCH POST |
501 | Unimplemented | An API was invoked that HCP for cloud scale doesn't support. |