What it means
The server won't process the request because its headers are too large, either all together or one in particular.
Why you're seeing it
- Too many or too large cookies for the domain.
- Huge
Authorizationtokens, such as JWTs with many claims. - Headers forwarded and duplicated by several proxies.
How to fix it
- Clear the site's cookies in the browser.
- Keep tokens and cookies small, and store session data on the server.
- Raise the server's limit, such as Node's
--max-http-header-size.
Example response
HTTP/1.1 431 Request Header Fields Too Large Content-Type: text/html <h1>Cookie too large</h1>