Write better errors if there was a problem with the proxy