Forum: NGINX Change client_body_timeout status code

2974d09ac2541e892966b762aad84943?d=identicon&s=25 carles.sistare (Guest)
on 2014-08-13 16:37
(Received via mailing list)
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
A8108a0961c6087c43cda32c8616dcba?d=identicon&s=25 Maxim Dounin (Guest)
on 2014-08-25 20:38
(Received via mailing list)
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 Dounin
http://nginx.org/
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.