← cyphonix.comSign in to the console
Cyphonix Backup

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

StatusMeaning
200Success
202Accepted; the action has been queued
400The request was malformed. code says which parameter.
401Authentication failed; see Authentication
403The token is not allowed to do this
404No such object in this tenant
409The action conflicts with current state, for example starting a backup on a device that is already running one
422The request was well-formed but a value was not acceptable
429Rate limit exceeded; see Pagination and rate limits
500An error on our side. Safe to retry.
502, 503Temporarily unavailable. Retry with back-off.
504The request took too long. Narrow the query.

Common error codes

codeStatusNotes
invalid_parameter400message names the parameter
invalid_cursor400Cursor expired or malformed; start again without it
device_not_found404
job_not_found404
device_offline409Returned when starting a backup on a device not currently connected
job_already_running409
device_retired409
range_too_large422Date range exceeds the endpoint's maximum
rate_limited429
internal_error500

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.

Last reviewed: · Report a problem with this page