Response Status Codes
Response Status Codes
Cortex returns HTTP status codes to indicate the API request succeeded or failed.
Generally, codes in these ranges mean the following:
- 2xx - Success
- 3xx - Redirection
- 4xx - Client application errors
- 5xx - Indicate Cortex server errors.
Standard Cortex HTTP Status Codes
Response Code | Definition | Usage |
---|---|---|
200 OK | The request is successful. | Returns for these request methods:
|
201 Created | Content created in resource. | Returns for this request method:
|
204 No Content | Cortex completed the request but didn't return an body. | Returns for these request methods:
|
307 Temporary Redirect | The resource is not at the specified URI. | Returns when:
|
400 Bad Request | The URI is malformed. | This response code is returned when:
|
401 Unauthorized | Unauthorized access to resource. | Returns when:
|
403 Forbidden | Forbidden. Indicates the request cannot be completed. | Returns when:
|
404 Not Found | Cortex cannot find the request URI. | Returns when:
|
405 Method Not Allowed | Method not allowed. | Returns when:
|
409 Conflict | Cortex cannot complete the request due to a conflict. | Returns when:
|
415 Unsupported Media Type | Unsupported media type. | |
500 Internal Server Error | Internal server error. | Returns when:
|
501 Not Implemented | Not implemented | |
503 Service Unavailable | Specified resource is not available. | Returns when:
|