Skip to main content

Error Reference

Every error response includes a machine-readable code, a human-readable message, and a docs_url linking to the relevant page below. Errors from validation endpoints also echo the normalized vat_number you submitted (and requester_vat_number when supplied), so your logs always record which number an attempt was for.

All error codes

Handling errors with the SDKs

The @avatcado/node and avatcado (Python) SDKs provide typed error classes so you can match on specific error types. The Node.js SDK returns { data, error } from every method, while the Python SDK raises exceptions.
Every error has code, message, and docsUrl (Node.js) / docs_url (Python) properties matching the error codes above. Errors from validation endpoints additionally carry the echoed vat_number and, when supplied, requester_vat_number; upstream 503 errors also carry meta.validation_id referencing the recorded attempt.