HTTP 431 Request Header Fields Too Large — What It Means
What HTTP status code 431 Request Header Fields Too Large means, when servers return it, and how to handle it correctly.
Published September 26, 2026
HTTP 431 Request Header Fields Too Large means the headers (often cookies) are bigger than the server accepts.
What it means
A bloated cookie header is the usual cause.
Common causes: Huge cookies; Very long Authorization or custom headers; Redirect loops adding cookies.
On the wire
GET / HTTP/1.1
HTTP/1.1 431 Request Header Fields Too Large
Cookie: (very large)
Practical examples
Test it from the shell
curl -i https://example.com/path # look for HTTP 431Handling 431 in code or config
large_client_header_buffers 4 16k;How to fix it
Clear cookies for the site; Reduce header size; Raise large_client_header_buffers.
1. Reproduce: curl -i <url>
2. Confirm the status is 431
3. Apply the fix above and re-testCommon mistakes
- Clear cookies for the site
- Reduce header size
- Ignoring the response headers that explain the details.
Key takeaways
- 431 means Request Header Fields Too Large.
- HTTP 431 Request Header Fields Too Large means the headers (often cookies) are bigger than the server accepts.
- Read the response headers and logs for the exact cause.
FAQ
How do I fix it as a user?
Clear cookies for that site.
Is 431 a client or server error?
It is a client error status code, in the 4xx class.