Improve http request error