400

HTTP 400 Bad Request

4xx Client Error

  1. Home
  2. > HTTP Status Codes >
  3. > 4xx >
  4. 400
4xx Client Error RFC 7231, Section 6.5.1

What is HTTP 400 Bad Request?

The 400 (Bad Request) status code indicates that the server cannot or will not process the request due to something perceived as a client error — malformed request syntax, invalid request message framing, or deceptive request routing. This is a generic client error response that should be accompanied by an error message explaining the specific problem.

Common Use Cases

  • Malformed JSON or XML in API requests
  • Invalid query parameters
  • Missing required headers
  • Request body parsing errors
Help2Code Logo
Menu