Errors
Errors are {"error": {"code", "message"}, "meta": …} with a matching HTTP status. Codes are stable; messages are written for people and may change.
Status codes
| Status | Codes | Counts towards your allowance |
|---|---|---|
400 | invalid_registration invalid_company_number invalid_vat_number invalid_eori invalid_postcode invalid_name invalid_query invalid_body invalid_url too_many | No |
401 | missing_api_key invalid_api_key | No |
403 | watch_limit live_key_required | No |
404 | vehicle_not_found company_not_found postcode_not_found station_not_found | Yes |
409 | watch_exists | No |
422 | unsupported_region | No, for example a Northern Ireland postcode |
429 | rate_limited quota_exceeded | No |
503 | upstream_unavailable coming_soon | No; retry after the Retry-After header |
Partial and stale responses
meta.sources shows each upstream source's status for the call: ok, stale, not_found, unavailable or skipped. meta.partial is true when one source failed and you still got the others. meta.stale is true when we served a cached copy because a source was down.
Retrying
Retry 429 and 503 responses after the number of seconds in Retry-After, with exponential backoff. Do not retry 400, 401 or 404.
Support
Every response carries an x-request-id header and meta.requestId. Quote it when you email info@vardic.dev.