HTTP Status Codes
The Decision Cloud API uses conventional HTTP response status codes to indicate the success or failure of an API request. If an error is returned, the response header contains an HTTP status code with a value ranging from 400 to 599.
In general:
| Code | Class | Description |
|---|---|---|
| 2xx | Successful | The request was successfully received, understood, and accepted. |
| 4xx | Client Error | The request contains bad syntax or cannot be fulfilled. |
| 5xx | Server Error | The Decision Cloud server failed to fulfill an apparently valid request. |
HTTP Status Code Reference
| Code | Status | Description |
|---|---|---|
| 200 | OK | The request was successfully completed. |
| 201 | Created | A new resource was successfully created. |
| 204 | No Content | The request was successful but returned no content. |
| 400 | Bad Request | The request was invalid. |
| 401 | Unauthorized | You are using an invalid access token. |
| 403 | Forbidden | You are authenticated but do not have access to this resource. |
| 404 | Not Found | The resource/page you are requesting does not exist. |
| 405 | Method Not Allowed | The request type is not allowed. |
| 409 | Conflict | The request could not be completed due to a conflict. |
| 422 | Unprocessable Entity | The request failed validation and was unable to process. |
| 429 | Too Many Requests | Too many requests hit the API too quickly and the rate limit was exceeded. |
| 500 | Internal Server Error | An error occured on the Decision Cloud server. |
| 503 | Service Unavailable | The Decision Cloud server was unavailable. |