Skip to Content

Error codes

Error codes, what causes them and how your client should react

Every error is an application/problem+json body with a stable code. Branch on code in your client; detail is for people and its wording can change between releases.

{
  "type": "about:blank",
  "title": "Unprocessable Content",
  "status": 422,
  "code": "page_out_of_range",
  "detail": "page 5 is out of range, the document has 1"
}

Validation errors add errors, one entry per invalid field, with loc as the path in your request:

{
  "type": "about:blank",
  "title": "Unprocessable Content",
  "status": 422,
  "code": "validation_error",
  "detail": "request validation failed",
  "errors": [
    {"loc": ["options", "chunking", "max_tokens"], "msg": "Extra inputs are not permitted", "type": "extra_forbidden"}
  ]
}

Fix the request

Retrying these returns the same error.

StatusCodeCause
400bad_requestThe multipart body is malformed
404not_foundThe path is not an endpoint
405method_not_allowedThe endpoint does not accept this HTTP method
413payload_too_largeThe upload exceeds limits.max_file_size (100 MB by default)
413source_too_largeThe URL or storage object exceeds limits.max_file_size
413too_many_pagesWith readMode: ocr, the document has more pages than ocr.max_pages (100 by default); auto reads it as text instead. Split it, or use readMode: auto or text
413image_too_largeThe image has more pixels than the decompression guard allows
415unsupported_media_typeThe request is neither application/json nor multipart/form-data
415unsupported_formatThe operation does not accept the detected format, or the file is corrupt or encrypted. See file formats
422validation_errorThe body or metadata is not a JSON object, or a field is missing, unknown or out of range; see errors
422unsupported_uriThe URI is malformed or not allowed there, for example file:// in a JSON request
422unknown_connectorThe storage URI names a connector the server does not have
422ocr_not_configuredreadMode: ocr on a server without an OCR backend. Ask the operator to configure one
422page_out_of_rangepage is past the end of the document

Fix access

StatusCodeCause
401unauthorizedThe Authorization: Bearer key is missing or wrong
403source_forbiddenThe fetch policy blocks the URL: private address, host not allowed, or URLs disabled
404source_not_foundThe URL returned 404 or 410, or the storage object does not exist

Retry later

StatusCodeCauseRetry
502source_fetch_failedThe remote server failed, returned an error status or redirected too oftenwith backoff
502destination_failedWriting to storage failedwith backoff; the result was not stored
502ocr_failedThe OCR backend failed or rejected a page, or its answer was cut off (qwen only); detail names the pageonce, with backoff; a page that fails again needs readMode: text or a different model
503ocr_rate_limitedThe OCR backend is still at its rate limit after several attemptsafter the Retry-After seconds
503queue_fullThe server is at capacityafter the Retry-After seconds
504processing_timeoutOne step took too long: 120 s for LibreOffice conversion, text extraction or an OCR call, 60 s for rendering a page, 30 s for a browser capturewith a smaller input or simpler options
504deadline_exceededThe whole request exceeded limits.deadline (300 s by default)with a smaller input, or ask the operator to raise the deadline

Report it

StatusCodeCause
500processing_failedA converter crashed or failed on this document
500internal_errorAn unexpected error; the server logs it, the response never includes internals

If processing_failed repeats for a document that opens in its own application, report it with the file and the request.

On this page