Skip to content

invalid_request

Invalid request. HTTP status 400 or 409 or 422.

The request has a missing or invalid field, listed in `errors` when the API can point to it.

What to do

Read detail and the errors array. Each entry’s pointer names the field to fix. For a 409, read the resource again before you retry.

What the message says

  • `domain` must be a valid domain name, for example `example.se`.
  • `domain` is required.
  • The request body contains invalid fields.

Example

Response 400
{
"type": "https://developer.hostup.se/errors/invalid_request",
"title": "Invalid request",
"status": 400,
"detail": "`domain` must be a valid domain name, for example `example.se`.",
"code": "invalid_request",
"requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3"
}

Branch on code, not on title or detail. When you contact support about it, include the requestId. More in Errors and retries.

Endpoints that return it