Docs menuErrors

Errors

Every error is JSON with a stable code and a message for people. A call that fails is never billed.

The shape

An errorJSON
{"error": {"code": "invalid_key", "message": "That API key is not valid."}}

Branch on code, not on message: a code never changes meaning or disappears within /v1, while a message may be reworded.

Every code

Error codes
StatusCodeMeaning
400invalid_requestThe request could not be read, such as a missing parameter.
400invalid_domaindomain must be a hostname like example.com (Email-security grade)
400invalid_selectorselector must be letters, digits, hyphens, underscores or dots (Email-security grade)
400not_pdfSend the PDF file as the request body. (PDF/UA validator)
400invalid_profileprofile must be ua1, ua2 or auto (PDF/UA validator)
401missing_keySend your API key in the X-API-Key header.
401invalid_keyThat API key is not valid, or it was revoked.
402payment_requiredThe key's org has no card on file.
402account_suspendedA payment failed or the card was removed.
404not_foundNo such endpoint.
405method_not_allowedWrong HTTP method for the endpoint.
410movedThe endpoint moved to another product; the message says where.
413file_too_largeThe body is larger than 50 MB. (PDF/UA validator)
415unsupported_media_typeUnsupported Content-Type.
422unreadable_pdfThe file could not be read as a PDF. (PDF/UA validator)
429rate_limitedMore than 10 requests a second on one key.
429quota_exceededThe key's monthly safety limit of 1,000,000 calls is used up.
500internalSomething failed on our side. Retry, and tell us if it keeps happening.
502dns_failedDNS lookup failed; try again shortly. (Email-security grade)
504timeoutValidation took longer than 60 seconds. (PDF/UA validator)

NextVersioning