http errors handling was fixed