This table below explains the possible status codes for HCP management API requests.
| Code | Meaning | Methods | Description |
|---|---|---|---|
| 200 | OK | All | HCP successfully created, retrieved, checked the existence of, modified, or deleted a resource. |
| 302 | Found | HEAD | Either the specified resource does not exist, or the specified resource exists, but the user account identified by the Authorization header or hcp-api-auth cookie doesn’t have permission to access the resource. |
| 400 | Bad Request | All |
The request was not valid. These are some, but not all, of the possible reasons:
If more information about the error is available, the response headers include the HCP-specific X‑HCP-ErrorMessage header. |
| 401 | Unauthorized | All | HCP was unable to handle the request. If this happens repeatedly, contact your authorized HCP service provider for help. |
| 403 | Forbidden | All |
The requested operation is not allowed. These are some, but not all, of the possible reasons:
If more information about the error is available, the response headers include the HCP-specific X‑HCP-ErrorMessage header. |
| 404 | Not Found | All | The resource identified by the URL does not exist. |
| 405 | Method Not Allowed |
PUT POST DELETE |
The requested operation is not valid for the resource identified by the URL. |
| 409 | Conflict | PUT |
For a PUT request, HCP could not create the resource because it already exists. If more information about the error is available, the response headers include the HCP-specific X‑HCP-ErrorMessage header. |
| 414 | Request URI Too Large | All | The portion of the URL following rest is longer than 4,095 bytes. |
| 415 | Unsupported Media Type | All | Either the management API does not support the Internet media type specified by the Content-Type or Accept header, or the request includes a request body but no Content-Type header. |
| 500 | Internal Server Error | All | An internal error occurred. If this happens repeatedly, contact your authorized HCP service provider for help. |
| 503 | Service Unavailable | All |
HCP is temporarily unable to handle the request. Possible reasons include:
If more information about the error is available, the response headers include the HCP-specific X‑HCP-ErrorMessage header. |