Errors

Every failure is a JSON object with error and message. Switch on error; the message is for humans and may change.

{ "error": "NOT_FOUND", "message": "No company matched that query." }
error HTTP When
MISSING_TOKEN 401 No Authorization header.
INVALID_TOKEN 401 The token is unknown or has been revoked.
UPGRADE_REQUIRED 403 This plan may not request include=owners.
NOT_FOUND 404 Nothing in the register matched.
INVALID_REQUEST 422 A parameter is missing or malformed.
INVALID_VAT 422 The registration number has the wrong shape for that country.
QUOTA_EXCEEDED 429 The daily quota is spent.
MONTHLY_QUOTA_EXCEEDED 429 The monthly quota is spent.