Http errors handling added