Status
http
431 Request Header Fields Too Large
Examples
Header field too large
In the following example, the Cookie header is too large in the request:
http
GET /doc HTTP/1.1
Host: example.com
Cookie: cookie1=value1; cookie2=value2; cookie3=[…]
The server responds with a message indicating which header was problematic:
http
HTTP/1.1 431 Request Header Fields Too Large
Content-Type: text/html
<!doctype html>
<head>
<title>Request Header Fields Too Large</title>
</head>
<body>
<h1>Request Header Fields Too Large</h1>
<p>The "Cookie" header was too large.</p>
</body>
</html>
Specifications
| Specification |
|---|
| RFC 6585 # section-5 |