SnapPDFSnapPDF
errors

Errors

Every error follows the same envelope and comes with an X-Request-Id header for support tickets.

{
  "error": {
    "code": "invalid_page_range",
    "message": "Page range \"7-10\" is invalid for a document with 4 page(s)",
    "details": { "range": "7-10", "maxPage": 4 }
  }
}

All error codes

HTTPCodeWhen
400invalid_parametersRequest was malformed — check `details` for specifics.
400invalid_fileUploaded PDF is corrupt or password-protected.
400invalid_page_rangeRange spec references pages outside the document.
400unsupported_formatFile MIME type is not accepted by this endpoint.
401unauthenticatedMissing / malformed / revoked API key.
403forbiddenKey lacks the required scope for this operation.
404not_foundResource (key, webhook, subscription) does not exist.
413file_too_largeFile exceeds your plan’s per-request limit.
415unsupported_formatAlias of 400 for multipart MIME mismatch.
429rate_limit_exceededRequests/min burst ceiling hit. Back off.
429quota_exceededMonthly op quota exhausted. Upgrade or wait.
500internal_errorServer bug. Include `x-request-id` when reporting.
500ocr_failedOCR engine error — try a lower DPI or different language.
500encryption_failedProtect driver was unavailable.

Retry policy

Our SDKs auto-retry 429 and 5xx responses with jittered exponential backoff, up to maxRetries (default 3). 4xx responses are never retried because the input is at fault.