We are using an Apache httpd as reverse proxy. In special cases when an error occurs in the backend system, it returns a special header like X-Error=1 (besides the status code 500).
Is it somehow possible to redirect those repsonses based on the presence of named response header? Redirect to a static error page for example. Unfortunately it is not possible to return a status code different from 500, which would solve described problem.
req
function, of whichresp
might help you.