HTTP 4xx Client Error Status Codes/HTTP 431 Request Header Fields Too Large

Headers are too large

Section: Codes 422-451

HTTP 431 Request Header Fields Too Large

text
text
curl -i -H 'Cookie: huge=...' https://example.com
Explanation

Often caused by oversized cookies or custom headers.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Codes 422-451
HTTP 422 Unprocessable Content
Semantically invalid content
OpenIn sheettextsame section
HTTP 423 Locked
Resource is locked
OpenIn sheettextsame section
HTTP 424 Failed Dependency
Dependent action failed
OpenIn sheettextsame section
HTTP 425 Too Early
Replay-risk request rejected
OpenIn sheettextsame section
HTTP 426 Upgrade Required
Client must switch protocol
OpenIn sheettextsame section
HTTP 428 Precondition Required
Conditional request required
OpenIn sheettextsame section