Handle http request exception