HTTP Status Headers

Nginx User nginx at
Sat Oct 15 16:15:40 UTC 2011

On 13 October 2011 04:34, agentzh <agentzh at> wrote:
> BTW, you could have written the Lua code like this:
> local m =, "GET|POST|HEAD", "io")
> if not m then
>    ngx.exit(400)
> end
Does ngx_lua support the appropriate "501 Not Implemented" for this?
A search took me to ngx_http_lua_consts.c but it doesn't seem to be there.

Also didn't realise I could use the actual code instead of a constant.

Is it possible to issue any status code or are we limited to those in


More information about the nginx mailing list