| 1 |
::: RFC6585 |
| 2 |
|
| 3 |
This document lists status codes that Cowboy implements as |
| 4 |
defined in the RFC6585 specifications. |
| 5 |
|
| 6 |
:: Status codes |
| 7 |
|
| 8 |
: 428 Precondition Required (RFC6585 3) |
| 9 |
|
| 10 |
The server requires the request to this resource to be conditional. |
| 11 |
|
| 12 |
The response should explain how to resubmit the request successfully. |
| 13 |
|
| 14 |
: 429 Too Many Requests (RFC6585 4, RFC6585 7.2) |
| 15 |
|
| 16 |
The user has sent too many requests in a given amount of time. |
| 17 |
|
| 18 |
The response should detail the rates allowed. |
| 19 |
|
| 20 |
The retry-after header can be used to indicate how long the |
| 21 |
user has to wait before making a new request. |
| 22 |
|
| 23 |
When an attack is detected it is recommended to drop the |
| 24 |
connection directly instead of sending this response. |
| 25 |
|
| 26 |
: 431 Request Header Fields Too Large (RFC6585 5, RFC6585 7.3) |
| 27 |
|
| 28 |
The request's header fields are too large. |
| 29 |
|
| 30 |
When rejecting a single header, the response should detail |
| 31 |
which header was at fault. |
| 32 |
|
| 33 |
When an attack is detected it is recommended to drop the |
| 34 |
connection directly instead of sending this response. |
| 35 |
|
| 36 |
: 511 Network Authentication Required (RFC6585 6) |
| 37 |
|
| 38 |
The user needs to authenticate into the network to gain access. |
| 39 |
|
| 40 |
This status code is meant to be used by proxies only, not by |
| 41 |
origin servers. |
| 42 |
|
| 43 |
The response should contain a link to the resource allowing |
| 44 |
the user to log in. |