herror handling of HTTPError