Thanks for the speedy nginx and speedy reply Igor.
The $status value does indeed log the 200 response.
Is it possible to configure nginx to return custom http status codes?
e.g. use a 299 and 298 code that are interpreted as a 200 OK by a custom
http client. The last two digits would signal information that would
otherwise
have to be contained in a new header or body.
On Thu, Apr 09, 2009 at 04:54:27AM -0400, davidc wrote:
Thanks for the speedy nginx and speedy reply Igor.
The $status value does indeed log the 200 response.
Is it possible to configure nginx to return custom http status codes?
e.g. use a 299 and 298 code that are interpreted as a 200 OK by a custom
http client. The last two digits would signal information that would otherwise
have to be contained in a new header or body.
The attached patch allows to use any status code in the “return”
directive
and the perl module.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.