Error response shape

Every error has the same shape: success: false, a message for people in error, a stable code for your code to act on, and field when one option is the problem.
A request that fails costs nothing. In the SDKs, every error is a ScreenshotRenderError with status, code and the message: see the Node and Python SDKs.

Errors

Retry guidance

  • Retry busy (429) after the Retry-After header’s seconds, and upstream_error (502) after a short wait.
  • Don’t retry 400, 401, 404, 413 or 415 as they are: change the request first.
  • Retry 402 once your balance covers the request.

Examples

A scrape with no URL:
A crawl your balance doesn’t cover:
A busy moment: