Fix problem with failure reporting in reverse proxy