Fixed up HTTP Error handling