diff options
author | Piotr Sikora <piotrsikora@google.com> | 2017-03-24 02:48:03 -0700 |
---|---|---|
committer | Piotr Sikora <piotrsikora@google.com> | 2017-03-24 02:48:03 -0700 |
commit | c3ce606652aeac465895ab8eb8c6fc195d7db16b (patch) | |
tree | fc2b0a8afb19b4834c26347ba247bf7d3de15ccf /src/http/ngx_http_request.h | |
parent | 9ac9fe2f3ec82455aa561027e91d380d2db0f3af (diff) | |
download | nginx-c3ce606652aeac465895ab8eb8c6fc195d7db16b.tar.gz nginx-c3ce606652aeac465895ab8eb8c6fc195d7db16b.zip |
Added support for "429 Too Many Requests" response (RFC6585).
This change adds reason phrase in status line and pretty response body
when "429" status code is used in "return", "limit_conn_status" and/or
"limit_req_status" directives.
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Diffstat (limited to 'src/http/ngx_http_request.h')
-rw-r--r-- | src/http/ngx_http_request.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h index 780a99f78..a68b90692 100644 --- a/src/http/ngx_http_request.h +++ b/src/http/ngx_http_request.h @@ -98,6 +98,7 @@ #define NGX_HTTP_UNSUPPORTED_MEDIA_TYPE 415 #define NGX_HTTP_RANGE_NOT_SATISFIABLE 416 #define NGX_HTTP_MISDIRECTED_REQUEST 421 +#define NGX_HTTP_TOO_MANY_REQUESTS 429 /* Our own HTTP codes */ |