Skip to content

Menu

  • Media
  • Pricing
  • Docs
  • Language: English

    This page isn’t available in the greyed-out languages.

    • English
    • Español
    • Português
    • Français
    • Deutsch
    • Italiano
    • Nederlands
    • Polski
    • 日本語
    • 한국어
    • Bahasa Indonesia
    • Tiếng Việt
    • Türkçe
    • العربية
    • ไทย
    • Български
    • Català
    • Hrvatski
    • Eesti
    • Magyar
    • Latviešu
    • Lietuvių
    • Srpski
    • Slovenčina
    • Slovenščina
    • Українська
    • Čeština
    • Română
    • Svenska
    • Dansk
    • Norsk bokmål
    • Suomi
    • עברית
    • हिन्दी
    • Tagalog
    • Bahasa Melayu
    • Ελληνικά
    • 简体中文
    • 繁體中文

Error codes

Every error has the same shape and a code that never changes, so your code can handle errors in one place.

On this page

The error format

Errors are problem details (RFC 9457), sent with Content-Type: application/problem+json:

422 response
{
  "code": "settings_invalid",
  "detail": "These settings don't match the operation's settings schema.",
  "request_id": "cd2be7ba329844a0d3057b3b9954ae43",
  "status": 422,
  "title": "Unprocessable Entity",
  "type": "about:blank"
}
FieldMeaning
codeWhat went wrong, as a code that never changes. Act on this.
detailA sentence for people, in English. It may change.
statusThe HTTP status.
titleThe HTTP status’s name.
typeAlways about:blank.
request_idQuote it if you contact us about this request.

Some codes add fields of their own, such as files, inputs or shortfall. The table below names them.

Statuses

StatusMeaning
200, 201, 202, 204It worked.
400The request is wrong: fix it before trying again.
401The API key is missing, unknown or revoked.
402The Workspace needs a subscription or more credits.
403This caller may not make this change.
404There’s no such thing in this Workspace.
405The address doesn’t accept this method.
409It clashes with the current state, such as a job still running.
410Storage no longer has an upload’s parts.
413, 415A file is too large, or of a type the operation doesn’t take.
422The request is well formed but can’t be done as asked.
429Too many calls, or too many jobs at once: wait, then try again.
500, 503A problem on our side: try again in a few minutes.

Error codes

CodeStatusMeaning and what to do
bad_request400The body isn’t valid JSON for this endpoint, has a field it doesn’t take, or a value is out of range. Fix the request.
unknown_operation400No operation has this ID. GET /v1/operations lists them.
unauthorized401The API key is missing, unknown or revoked. Check the Authorization header.
insufficient_credits402Not enough credits for the job’s reservation. required_credits, available_credits and shortfall give the numbers.
subscription_required402The Workspace has no active subscription. Choose one of the plans.
forbidden403This caller may not make this change.
not_cancellable403Only whoever started the job can cancel it. Any of the Workspace’s API keys can cancel a job started with one, so a key doesn’t get this code.
not_deletable403Only whoever started the job can delete its files. Any of the Workspace’s API keys can delete the files of a job started with one, so a key doesn’t get this code.
not_found404There’s no such operation, upload, file, job or webhook endpoint in this Workspace.
method_not_allowed405The address doesn’t accept this method. The Allow header lists the ones it does.
already_uploaded409The upload is already complete.
files_unusable409An operation that makes one result from all its files can’t use one of them. inputs gives each one’s reason.
idempotency_key_in_use409A request with this Idempotency-Key is still running. Wait a moment, then retry.
still_running409A running job’s files can’t be deleted. Cancel the job first.
too_many_webhooks409The Workspace already has 20 webhook endpoints. Remove one first.
upload_incomplete409Parts are missing or have the wrong length. Send those in missing_parts and wrong_parts, then complete the upload again.
upload_gone410Storage no longer has the upload’s parts, so it can’t be completed. Start it again.
file_too_large413A file is larger than the operation takes. files names it, with limit_bytes.
unsupported_type415The operation doesn’t take this type of file. files names it.
empty_file422A file is empty. files names it.
too_many_files422More files than one upload request or the operation takes. limit gives the most.
idempotency_key_reused422This Idempotency-Key was used with a different request. Use a new key for a new request.
settings_invalid422The settings don’t match the operation’s settings schema, which GET /v1/operations/{id} gives.
nothing_to_run422No input would run. inputs gives each one’s reason.
url_invalid422The webhook address isn’t HTTPS, isn’t on the public internet or isn’t valid: reason says which.
events_invalid422An event isn’t one we send. events lists those we do.
rate_limited429Too many calls this minute. Wait the seconds in Retry-After, then try again.
too_many_file_operations429The Workspace already runs 100 jobs. Start this one when one of them ends.
internal500A problem on our side. Try again; if it keeps happening, contact us with the request_id.
unavailable503The operation can’t run right now because of a problem on our side. Try again in a few minutes.
storage_unavailable503File storage can’t be reached right now. Try again in a few minutes.

When several files in one upload request have problems, files lists each one, code names the first, and the status is the highest of theirs.

What to retry

  • 429: wait the seconds in Retry-After, or for a running job to end.
  • 500 and 503: wait a few seconds, then retry, waiting longer after each failure.
  • 409 idempotency_key_in_use: the first request is still running. Wait a moment, then retry with the same key.
  • Everything else: retrying the same request gets the same answer. Fix the request or the state first.

Send an Idempotency-Key with every POST /v1/uploads and POST /v1/jobs, so a retry never does anything twice: see safe retries.