improve error messaes on http request failure