Better error message for failed http requests.