http proxy error handling