Codes in the 2xx range indicate success. Codes in the 4xx range indicate an
error that failed given the information provided (e.g., a required parameter
was omitted, etc.). Codes in the 5xx range indicate an error with our
servers.
HTTP Status Codes
2xx Success Codes
2xx Success Codes
| Status Code | Description |
|---|---|
| 200 | OK - Request was successful |
| 201 | Created - Resource was successfully created |
4xx Client Error Codes
4xx Client Error Codes
| Status Code | Description |
|---|---|
| 400 | Bad Request - The request was unacceptable, often due to missing a required parameter |
| 401 | Unauthorized - No valid API key was provided |
| 402 | Request Failed - The parameters were valid but the request failed |
| 403 | Forbidden - The API key doesn’t have permission to perform the request |
| 404 | Not Found - The requested resource doesn’t exist |
| 429 | Too Many Requests - Too many requests hit the API |
5xx Server Error Codes
5xx Server Error Codes
| Status Code | Description |
|---|---|
| 500 | Internal Server Error - Something went wrong on Carbon’s end |
| 502 | Bad Gateway - Invalid response from an upstream server |
| 503 | Service Unavailable - Carbon is temporarily offline for maintenance |
| 504 | Gateway Timeout - The server didn’t respond in time |
Error Response Format
All errors return JSON in the following format:Common Error Examples
Best Practices
Log Error DetailsAlways log the full error response for debugging purposes, but never expose sensitive error details to end users.