Errors

Error envelope and status codes.

Errors return a non-2xx status and a consistent JSON envelope:

json
{
  "success": false,
  "error": {
    "code": "INSUFFICIENT_CREDITS",
    "message": "Not enough credits to complete this request."
  }
}

Status Codes

ParameterTypeDescription
400 / 422VALIDATION_ERRORThe request body failed validation. The error includes the offending fields.
401INVALID_API_KEYMissing, malformed, or revoked API key.
402INSUFFICIENT_CREDITSYour Peep Card can't cover the request. Top up or wait for a refund.
403FORBIDDENThe key lacks access to a paid-tier feature (e.g. robots.txt bypass).
404NOT_FOUNDNo job or resource with that id.
429RATE_LIMITEDToo many requests. Honor the Retry-After header.
500INTERNAL_ERRORSomething went wrong on our side. Safe to retry.