400 Bad Request

HTTP 400 Bad Request: the IANA registry entry, its reference and class, what it means and what usually causes it.

Updated

HTTP 400 Bad Request is a registered status code in the 4xx Client Error class.

IANA registration

Field Value
Code 400
Description, as registered Bad Request
Reference RFC 9110, Section 15.5.1
Class 4xx Client Error

Source: IANA Hypertext Transfer Protocol (HTTP) Status Code Registry, as downloaded on December 5, 2026. The registry changes over time; the linked page is the authority.

The 4xx class

The first digit of a status code gives its class. A 4xx (Client Error) code means the request contains bad syntax or cannot be fulfilled. A client that does not recognize a particular code can treat it as the x00 code of its class. The classes are defined in RFC 9110, Section 15.

What it means in practice

This section is written by Network Utility. It is not part of the IANA registry.

The server cannot or will not process the request because something about the request itself is wrong.

What usually causes it. Common causes are a malformed URL or query string, a request body that is not valid JSON or does not match its Content-Type, a missing required parameter, and headers or cookies that are corrupt or too large. Clearing the site's cookies fixes a surprising number of 400 errors in browsers. For an API, the response body usually says which field was rejected.