HTTP 431 Request Header Fields Too Large (Node.js 16 KB Limit)
Accumulated cookies or auth headers exceeded Node HTTP server `maxHeaderSize`.
Runs locally in browser
Free · No login
Independently Verified 2026-11-25
v4.1.0
Identifier: HTTP 431 Request Header Fields Too Large (Node.js 16 KB Limit)
Platform: HTTP
Common Root Causes:
- Accumulated cookies or auth headers exceeded Node HTTP server `maxHeaderSize`.
Interactive Diagnostic Checklist
Verified Solutions:
- Prune bloated browser cookies or pass `--max-http-header-size=32768` temporarily while fixing.
Safe Diagnostic Command:
Inspect Cookie header byte length in DevTools
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.
Technical Explanation
Accumulated cookies or auth headers exceeded Node HTTP server `maxHeaderSize`. Recommended diagnostic: `Inspect Cookie header byte length in DevTools`. Remediation: Prune bloated browser cookies or pass `--max-http-header-size=32768` temporarily while fixing.
Worked Examples
- Run `Inspect Cookie header byte length in DevTools` to verify root cause before applying the remediation.
Limitations & Assumptions
- Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.
Source References & Verification
Resource ID: err-http-431-request-header-fields-too-large · Independently verified: 2026-11-25