All HTTP status codes

HTTP 400 Bad Request

Client Error

The server can't or won't process the request because the client sent something malformed — invalid JSON, bad query parameters, broken headers or framing.

Defined in RFC 9110

Common causes

  • Malformed JSON/XML body or wrong Content-Type
  • Invalid query string or header values
  • Request smuggling protections rejecting odd framing
  • Oversized or malformed cookies

How to fix it

  1. Validate the payload against the API schema before sending

  2. Set the correct Content-Type (e.g. application/json)

  3. Clear site cookies if a corrupted cookie triggers it

  4. Log the server-side validation error to pinpoint the exact field

Want to explore status codes interactively? Try the free HTTP Status Code Reference — search, categories and example responses, right in your browser.