[PATCH]add new http status code
mdounin at mdounin.ru
Tue May 8 19:39:20 UTC 2012
On Tue, May 08, 2012 at 08:10:46PM +0800, Simon Liu wrote:
> It add a few of new http status code In RFC 6585(
> http://tools.ietf.org/html/rfc6585), and so I add this to Nginx.
> The new http status code 429(Too Many Requests) and 431(Request Header
> Fields Too Large) in RFC 6585 is useful to Nginx,
> because Nginx will return 400 when request header is Too Large and return
> 503 when too many request(in limit_req).
> Blew is patch(for Nginx trunk) to use 429 replace 400 when request header
> is too large,
> and use 431 replace 503 when find too many request(limit_req module). in
> addition to add new http status code 511.
There are no plans to replace returned status codes in near
future, at least not before we have clear understanding of effects
of new codes on behaviour of various clients.
And in case of limit_req/limit_conn this might happen at all due
to compatibility reasons: there are lots of configs out there
which expect 503 to be returned.
More information about the nginx-devel