Fix HTTPError namespace issue