Re: Rewrite HTTP status code

2014-03-23 Thread Maxim Dounin
Hello! On Fri, Mar 21, 2014 at 10:52:16PM +, John de Freitas wrote: > Hello. I'm running nginx as a proxy for back-end servers that are > returning a non-standard HTTP status phrase. I'd like to be able to > rewrite the status to something standard. For > example, if the back-end returns:

Rewrite HTTP status code

2014-03-21 Thread John de Freitas
Hello. I'm running nginx as a proxy for back-end servers that are returning a non-standard HTTP status phrase. I'd like to be able to rewrite the status to something standard. For example, if the back-end returns: HTTP/1.1 400 Not Understood I'd like to rewrite to: HTTP/1.1 400 Bad Request T