Handle the error from perform request