docs: function fail(defer, error, xhr) {
      if (xhr.status === 0) {
        defer.reject('请求被拒绝');
      } else if (xhr.status >= 400) {
        defer.reject(getMsg(xhr.responseJSON));
      } else {
        defer.reject(error);
      }
    }