country_not_eu

HTTP 422

Country not in VIES

Type URL

https://developer.hostup.se/errors/country_not_eu

Detail message

Country ${countryCode} is not an EU/VIES member state.

Example response

{
  "type": "https://developer.hostup.se/errors/country_not_eu",
  "title": "Country not in VIES",
  "status": 422,
  "detail": "Country ${countryCode} is not an EU/VIES member state.",
  "code": "country_not_eu",
  "instance": "/api/v2/...",
  "requestId": "req_abc123",
  "timestamp": "2026-04-27T12:00:00.000Z"
}

Handling this error

const response = await fetch(url, options);

if (!response.ok) {
  const problem = await response.json();

  if (problem.code === "country_not_eu") {
    // Handle: Country not in VIES
    console.error(problem.detail);
  }
}