Skip to content

// Client error

400 Bad Request

The server cannot process the request because its syntax, framing or basic input is invalid.

Common causes

  • Malformed JSON.
  • Invalid query syntax.
  • A required request value cannot be parsed.
  • An unsupported content type was sent.

Troubleshooting

  • Validate the raw request body as JSON.
  • Compare Content-Type with the body format.
  • Inspect query encoding and required parameters.
  • Use 422 when syntax is valid but domain validation fails.

Example response

HTTP/1.1 400 Bad Request
Content-Type: application/json

{ "code": "invalid_json", "message": "Request body is not valid JSON" }

Related status codes

// GET STARTED

Inspect the complete API response.

Use REST Test to send a request and review its status, headers, timing and body together.

Start for free