Mercurial > hg > nginx
comparison src/http/ngx_http_request.h @ 6965:3ef4cadfad7f
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>
author | Piotr Sikora <piotrsikora@google.com> |
---|---|
date | Fri, 24 Mar 2017 02:48:03 -0700 |
parents | e662cbf1b932 |
children | be5cfa918bfc |
comparison
equal
deleted
inserted
replaced
6964:5d3d9b52327d | 6965:3ef4cadfad7f |
---|---|
96 #define NGX_HTTP_REQUEST_ENTITY_TOO_LARGE 413 | 96 #define NGX_HTTP_REQUEST_ENTITY_TOO_LARGE 413 |
97 #define NGX_HTTP_REQUEST_URI_TOO_LARGE 414 | 97 #define NGX_HTTP_REQUEST_URI_TOO_LARGE 414 |
98 #define NGX_HTTP_UNSUPPORTED_MEDIA_TYPE 415 | 98 #define NGX_HTTP_UNSUPPORTED_MEDIA_TYPE 415 |
99 #define NGX_HTTP_RANGE_NOT_SATISFIABLE 416 | 99 #define NGX_HTTP_RANGE_NOT_SATISFIABLE 416 |
100 #define NGX_HTTP_MISDIRECTED_REQUEST 421 | 100 #define NGX_HTTP_MISDIRECTED_REQUEST 421 |
101 #define NGX_HTTP_TOO_MANY_REQUESTS 429 | |
101 | 102 |
102 | 103 |
103 /* Our own HTTP codes */ | 104 /* Our own HTTP codes */ |
104 | 105 |
105 /* The special code to close connection without any response */ | 106 /* The special code to close connection without any response */ |