Updated HTTPError handling