@http · HTTP status codes, explained HTTP/1.1 431 Request Header Fields Too Large ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4xx · Client error The headers, or one header, are too big. 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 Authorization tokens, 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  

Cookie too large

 related 400 Bad Request   413 Content Too Large   414 URI Too Long spec RFC 6585 https://www.rfc-editor.org/rfc/rfc6585 web https://athttp.com/431 ← curl athttp.com/429 curl athttp.com/451 →