Errors & status codes
Machine-readable validation, missing results, rate, entitlement and operational failures.
HTTP status reference
| HTTP | Meaning | Client action |
|---|---|---|
| 200 | Completed lookup; not necessarily a code/VIN found. | Inspect body status, result and billing. |
| 202 | Original lookup is still pending or queued. | Wait and poll the request ID. |
| 400 | Invalid format, unsupported field or malformed request. | Fix the request. |
| 401 | Missing, invalid or revoked authentication. | Check the API key. |
| 402 | Entitlement, allowance or payment issue. | Check the account in the portal. |
| 403 | API/account access or browser origin not authorised. | Check access and origin settings. |
| 404 | No matching vehicle, or unknown status-request ID. | Distinguish by endpoint and response body. |
| 409 | In progress or conflicting idempotency reuse. | Preserve the original request or correct key reuse. |
| 413 | Request JSON exceeds the supported size. | Reduce the body; do not batch vehicle inputs. |
| 429 | Not currently returned by lookups. | Keep any existing handling; follow Retry-After wherever another endpoint sends it. |
| 503 | The lookup did not finish. Not charged. | Inspect reason; do not infer vehicle invalidity. |
Invalid format —HTTP 400
{
"detail": "Supply a valid UK registration.",
"status": "invalid_input",
"error": {
"code": "invalid_registration_format",
"field": "reg"
},
"validation": {
"format": "invalid",
"existence": "not_checked"
}
}Invalid VIN syntax uses error.code: invalid_vin_format and error.field: vin. Format rejection happens before lookup admission. A well-formed but unrecognised identifier is not the same error.
Completed negative results
Read validation.existence alongside reason:
| Reason | Meaning |
|---|---|
vehicle_not_found | No matching vehicle was found. Not proof the vehicle never existed. |
paint_code_not_found | Vehicle recognised, but no paint code is available. |
vehicle_unconfirmed | The vehicle could not be confirmed. Do not label the registration or VIN definitively invalid. |
Results saved earlier can carry another not-found reason; treat it as vehicle_unconfirmed.
Account rate limit —HTTP 429
Lookups are not currently answered with HTTP 429. Keep handling account_rate_limited if your integration already does, and follow Retry-After on any endpoint that asks you to wait.
Lookup ran out of time —HTTP 503
{
"status": "search_incomplete",
"paint": null,
"reason": "lookup_timeout",
"detail": "This lookup ran out of time. Please try again.",
"retryable": true,
"request_id": "docs-example-timeout-001",
"billing": {
"billable": false,
"charge_pence": 0,
"currency": "GBP",
"included": false
}
}search_incomplete and lookup_timeout mean the lookup did not finish, so trying again later may return a result. lookup_busy means try again in a moment. lookup_unavailable means the lookup could not be completed; if it keeps happening, contact support and quote the request reference. None of these are charged. Treat any other reason on an HTTP 503 as search_incomplete.
Response parsing
Not every error has the complete successful-result shape. Authentication/validation errors can contain only detail and validation fields. Treat optional fields as optional; retain the request reference for support. Do not build client logic around an exact English message string.
Examples show key fields with illustrative identifiers and display values; additional fields may appear. They are not ready-made test vehicles, fresh lookup receipts or promises that a particular vehicle returns this result. Use your own authorised vehicle identifiers.
More response variations
See response examples for additional validation, access, entitlement, missing-vehicle, admission and temporary-error JSON.
