Handle response error