Console
Documentation menu

Reference

Errors

API error codes, HTTP statuses, retry guidance and CLI exit codes.

API error codes

CodeHTTPMeaning and fix
invalid_request400Malformed body or a parameter failed validation. The message names the field.
invalid_config400clockingcloud.yaml failed validation. Run clockingcloud plan locally to see every problem.
unauthenticated401Missing, invalid, expired or revoked API key.
insufficient_credits402Balance is zero or too low. Add credit in Billing.
forbidden403The credential is valid but may not do this.
not_found404No such instance, volume, run or key.
conflict409Name already exists, or the resource is in a state that blocks the action, such as starting a deleting instance.
quota_exceeded422You hit a limit on concurrent GPUs, volumes or keys. See Limits.
idempotency_conflict409The same Idempotency-Key was used with a different request body.
rate_limited429Too many requests. Honor Retry-After.
capacity_unavailable503No GPU of the requested type could be allocated in time. Retry.
internal500Unexpected error. Retry with backoff and include request_id if it persists.

What to retry

  • Retry 429, 500, 502, 503 and 504 with exponential backoff and jitter. Always send an Idempotency-Key on POSTs you retry.
  • Do not retry 400, 401, 402, 403, 404, 409 or 422 without changing something first.

CLI exit codes

Exit codeMeaning
0Success.
1Unexpected error.
2Invalid usage or invalid clockingcloud.yaml (API 400).
3Not authenticated (API 401).
4Insufficient credits (API 402).
5Not found (API 404).
6Conflict (API 409).
7Timed out waiting.
130Interrupted by Ctrl+C.

Something unclear or missing? Email hello@clockingcloud.com.