Developer guide / Errors

Errors

Handle the code, then show the message. Failed processing returns its credit reservation.

{
  "error": {
    "code": "insufficient_credits",
    "message": "You need more credits for this request."
  },
  "detail": "You need more credits for this request."
}
HTTPCodeWhat to do
400invalid_form / invalid_jsonSend a valid request body.
401api_key_required / invalid_api_keyUse an active API key.
402insufficient_creditsAdd credits; no automatic overage is charged.
403origin_not_allowedUse the website or a server-side API client.
404image_not_foundThe image is not yours, was deleted or expired.
409idempotency_conflict / image_not_readyUse the same options with an existing key, or wait for processing.
410result_expiredUse a new idempotency key for a new processing job.
413too_largeReduce the file or download binary instead of a large Base64 JSON response.
422invalid_parameter / processing_failedCheck the source, resolution and options. Processing failures return credits.
429rate_limit / free_limit / capacity_limitRespect Retry-After; avoid rapid retries.
502processing_failedRetry after a failed job; do not repeat a still-running job.
503setup_requiredThe service is not configured or is temporarily unavailable.

Clearcut support