logging http errors