some better error handling for cases where we get an HTTP error with a likely HTML response body