Home › Documentation › API › Errors
API errors
Error object
Errors are returned with an appropriate HTTP status and a JSON body:
{
"error": {
"code": "device_not_found",
"message": "No device with id dev_01HZX4QF8N exists in this tenant.",
"request_id": "req_01J9C2M7T4KX"
}
}
code is stable and safe to match on. message is for people and may change. Quote request_id when contacting support.
Status codes
| Status | Meaning |
|---|---|
| 200 | Success |
| 202 | Accepted; the action has been queued |
| 400 | The request was malformed. code says which parameter. |
| 401 | Authentication failed; see Authentication |
| 403 | The token is not allowed to do this |
| 404 | No such object in this tenant |
| 409 | The action conflicts with current state, for example starting a backup on a device that is already running one |
| 422 | The request was well-formed but a value was not acceptable |
| 429 | Rate limit exceeded; see Pagination and rate limits |
| 500 | An error on our side. Safe to retry. |
| 502, 503 | Temporarily unavailable. Retry with back-off. |
| 504 | The request took too long. Narrow the query. |
Common error codes
code | Status | Notes |
|---|---|---|
invalid_parameter | 400 | message names the parameter |
invalid_cursor | 400 | Cursor expired or malformed; start again without it |
device_not_found | 404 | |
job_not_found | 404 | |
device_offline | 409 | Returned when starting a backup on a device not currently connected |
job_already_running | 409 | |
device_retired | 409 | |
range_too_large | 422 | Date range exceeds the endpoint's maximum |
rate_limited | 429 | |
internal_error | 500 |
Retrying
Retry 429, 500, 502, 503 and 504 with exponential back-off starting at two seconds, up to five attempts. GET requests are always safe to retry. POST actions accept an Idempotency-Key header; repeating a request with the same key within 24 hours returns the original result instead of performing the action twice.
These are not agent error codes
API error codes are unrelated to the CBK- codes reported by the agent, which are documented under Error codes. A failed job's agent error code appears in the job object's error_code field.