add exception for http errors