handle proxy error