Error AtlasError Documentation and Resolution

HTTP 431 Request Header Fields Too Large

431 Request Header Fields Too Large

The server is unwilling to process the request because the request header fields are too large, either individually or in total.

431 Request Header Fields Too Largegeneral
431 Request Header Fields Too Large
  • The request includes excessively large cookies or authentication tokens.
  • Too many custom headers or forwarded headers are being attached to the request.
  • An intermediary or application is repeatedly appending to headers across redirects or retries.
  1. Reduce cookie size and remove unnecessary cookie values where possible.
  2. Trim oversized or duplicate headers from the client or proxy configuration.
  3. Check whether redirects, middleware, or proxies are inflating headers unexpectedly.
MDN: 431 Request Header Fields Too Large
431 Request Header Fields Too Large: what it means and how to fix it | Error Atlas