Tyche Labs data APIs
Docs menu: Errors

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

StatusCodesBilled
400invalid_registration, invalid_company_number, invalid_vat_number, invalid_eori, invalid_postcode, invalid_name, invalid_query, invalid_body, invalid_url, too_manyNo
401missing_api_key, invalid_api_keyNo
403watch_limit, live_key_requiredNo
404vehicle_not_found, company_not_found, postcode_not_found, station_not_foundYes
409watch_existsNo
422unsupported_region (for example a Northern Ireland postcode)No
429rate_limited, quota_exceededNo
503upstream_unavailable, coming_soon (see the Retry-After header)No

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 [email protected].