Errors
Every error is a JSON body with a short code.
On the Agency plan
What one looks like
The error code stays the same, so your code can rely on it. Many errors add a message.
Response
{"error": "site_not_on_plan", "message": "That site is not on your plan."}What to do first
- 401: check the keyIs it set, and is it still listed on API keys?
- 403: read the messageIt says which plan, site or limit stopped you.
- 429: wait
Retry-Aftersays how long. If it isn't there,messagesays why.
Error codes
| Code | Status | Means |
|---|---|---|
bad_key | 401 | The key is missing, wrong or revoked. |
no_plan | 403 | Keys need a paid plan of your own. On fixes.txt: the report's site isn't on your plan. |
site_not_on_plan | 403 | Your plan doesn't cover that site. |
no_rechecks_left | 403 | This site has no re-checks left. |
not_found | 404 | That route, report or check doesn't exist, or isn't yours. |
bad_request | 400 | The request body isn't what we expected. |
too_many_requests | 429 | Slow down. Wait as long as Retry-After says. |
refused | 403 429 502 | We couldn't start the check: no checks left today, the site is busy, or the address can't be read. message says which. |