Errors

A failed request returns an HTTP status and an error object. Handle it by error.code, not by message.

Markdown
JSON
{
  "error": {
    "code": "invalid_request",
    "message": "The request contains an invalid field.",
    "retryable": false,
    "request_id": "request_example",
    "param": "query"
  }
}

param names the invalid field. Quote request_id when you contact us. When retryable is true, wait for Retry-After and send the request again.

Error codes

CodeStatusRetryableMeaning
invalid_request400falseInvalid input or unknown field.
content_blocked400falseModeration rejected the content.
unauthorized401falseMissing or invalid API key.
registration_required403falseComplete registration first.
account_deletion_pending403falseAccount deletion is pending.
not_found404falseUnknown resource or public API path.
method_not_allowed405falseUnsupported HTTP method.
run_not_cancellable409falseThe Run cannot be cancelled.
source_not_available422falseThe source is unavailable.
page_not_found422falseThe page's site answered 404 or 410.
rate_limit_exceeded429trueRequest rate limit exceeded.
daily_credits_exhausted429falseThe daily credit allowance cannot admit this operation.
weekly_credits_exhausted429falseThe weekly credit allowance cannot admit this operation.
outstanding_run_limit429falseToo many outstanding Runs.
request_cancelled499falseThe caller cancelled the request or disconnected.
internal_error500trueUnexpected server failure.
temporarily_unavailable503trueService temporarily unavailable.