remove location header to prevent redirect

when this header is set, the error messages are lost due to the 302