The server cannot process the request because it is malformed or invalid.
400 Bad Request is the generic client-error status: the server thinks the request is wrong in a way it cannot (or will not) describe more precisely, such as invalid syntax, a bad header, or framing it cannot parse. Many APIs also use it for invalid parameters, although 422 is more specific for well-formed but semantically invalid bodies.
large_client_header_buffers (internally code 494).application/problem+json is a good format).large_client_header_buffers in nginx or LimitRequestFieldSize in Apache, or reduce cookie size.curl -v shows exactly what is sent.| Header | Role |
|---|---|
Content-Type | Often application/problem+json for API errors (RFC 9457). |
HTTP/1.1 400 Bad Request
Content-Type: application/problem+json
{"type": "about:blank", "title": "Bad Request", "detail": "Body is not valid JSON"}