If statement with $limit_req_status under location block with proxy_pass not working

2022-06-02 Thread acidiclight
Hello, I'm trying to customize my response to rate-limited requests by keeping limit_req_dry_run on, and using an if statement depending on the value of $limit_req_status: This works as expected: limit_req_zone $binary_remote_addr zone=one:1m rate=2r/m; server { listen 80; se

Re: Unknown 428 http status code description via nginx

2022-06-02 Thread Sergey Kandaurov
> On 1 Jun 2022, at 16:32, libresco_27 wrote: > > Hello, > > I added 428 as an allowed http status code that can be returned from nginx. > But when I access this from postman/insomnia the status code description > comes out to be "unknown". eg - HTTP/1.1 428 Unknown, instead of HTTP/1.1 > 428