proxy error handling