Added response errors handling