Skip to main content

One shape, every failure

Every failure — whether it came from the scrape pipeline or was rejected at the edge — returns the same body:
message is always a string. Validation problems arrive as a list in details. traceId is also returned in the x-trace-id header and is what to quote when asking us about a request.

The HTTP status is the origin’s status

When a target answers, we return its status rather than flattening everything to 200. A 404 from the site is a 404 from us; a 418 is a 418. So code tells you what happened, and errorCode tells you whose problem it is — which is the part that decides whether retrying could ever help.

Codes

A timeout and a block are different things

If a run saw a named vendor refuse us, you get WEBSITE_BLOCKED or RATE_LIMITED with the vendor named — not TIMEOUT — even when the clock is what finally stopped it. That distinction matters because TIMEOUT suggests more time would help and points you at the batch endpoint, and for a blocked page it would not: the same page fails there too, just more slowly.

Quota

Every response, success or failure, carries:
These are present on a 402 as well, which is the moment you most want to see them.