Skip to main content

Error handling

The SDK translates each HTTP error code into a subclass of MarkpdfError (which extends Error).

Error table

Todas exponen:

Capture specific errors

Automatic retries

  • 429 and 5xx: retries with exponential backoff and jitter. Honor Retry-After if the server sends it.
  • 4xx different from 429: not retried.
  • Network/timeout errors: retried same as 5xx.
Disable SDK retries:

Job falvavalid

MarkpdfJobFailedError means that the job has already exhausted internal server retries. Retrying from the client is reasonable, but do it with backoff.