handle http request errors