Handle HTTPError response