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:
http://forum.nginx.org/read.php?2,252536,252536#msg-252536

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 http://nginx.org/r/error_page.


Maxim D.
http://nginx.org/