2015-11-06 22:55:41 +01:00
|
|
|
---
|
|
|
|
set: 4
|
|
|
|
code: 431
|
|
|
|
title: Request Header Fields Too Large
|
|
|
|
---
|
|
|
|
|
2015-11-09 02:44:05 +01:00
|
|
|
The server is unwilling to process the request because its header fields are too
|
|
|
|
large. The request MAY be resubmitted after reducing the size of the request
|
|
|
|
header fields.
|
2015-11-07 05:34:40 +01:00
|
|
|
|
|
|
|
It can be used both when the set of request header fields in total is too large,
|
|
|
|
and when a single header field is at fault. In the latter case, the response
|
|
|
|
representation SHOULD specify which header field was too large.
|
|
|
|
|
|
|
|
For example:
|
|
|
|
|
|
|
|
```
|
|
|
|
HTTP/1.1 431 Request Header Fields Too Large
|
|
|
|
Content-Type: text/html
|
|
|
|
|
|
|
|
<html>
|
|
|
|
<head>
|
2015-11-09 20:01:11 +01:00
|
|
|
<title>Request Header Fields Too Large</title>
|
2015-11-07 05:34:40 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
2015-11-09 20:01:11 +01:00
|
|
|
<h1>Request Header Fields Too Large</h1>
|
|
|
|
<p>The "Example" header was too large.</p>
|
2015-11-07 05:34:40 +01:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
```
|
|
|
|
|
|
|
|
Responses with the 431 status code MUST NOT be stored by a cache.
|
|
|
|
|
2015-11-09 02:44:05 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
* Source: [RFC6585 Section 5][1]
|
2015-11-07 05:34:40 +01:00
|
|
|
|
|
|
|
[1]: <http://tools.ietf.org/html/rfc6585#section-5>
|