handle ec2response error