error handling for proxy.web