Skip to content

Errors

invalid_request

The request does not match what the operation accepts.

Status

HTTP 400, title Invalid request. One of the the request itself errors. Branch on code, never on the status or the prose.

Common causes

  • A required field or parameter is missing.
  • A value has the wrong type, format or range.
  • The body is not valid JSON.

What to do

The request does not match the operation. Read detail; retrying unchanged will fail identically.

Example

The body arrives as application/problem+json. Most responses add detail about the occurrence, and some add fields of their own.

{
  "type": "https://www.shortsintel.com/docs/reference/errors/invalid_request",
  "title": "Invalid request",
  "status": 400,
  "code": "invalid_request"
}