Change client_body_timeout status code

Hi,
I’m using client_body_timeout which returns a 408 or 503 status code,
not
sure.
The thing is that I need this to be intercepted, somehow, and to change
this
status code to some ohter particular code.

I wonder if this is even possible.

Thanks in advance

Carles

Posted at Nginx Forum:

Hello!

On Wed, Aug 13, 2014 at 10:37:10AM -0400, carles.sistare wrote:

Hi,
I’m using client_body_timeout which returns a 408 or 503 status code, not
sure.
The thing is that I need this to be intercepted, somehow, and to change this
status code to some ohter particular code.

On client_body_timeout nginx will return 408.
Much like any other error, it can be changed using the error_page
directive, see Module ngx_http_core_module.


Maxim D.
http://nginx.org/