src/client.js
function throwStatusError(resp) {
  let err = new Error(resp.statusText || 'http error: ' + resp.status);
  err.type = resp.status;
  err.response = resp;
  err.url = resp.url;
  throw err;
}
function throwStatusError(resp) {
  let err = new Error(resp.statusText || 'http error: ' + resp.status);
  err.type = resp.status;
  err.response = resp;
  err.url = resp.url;
  throw err;
}
function throwStatusError ( resp ) { let err = new Error ( resp . statusText || 'http error: ' + resp . status ) ; err . type = resp . status ; err . response = resp ; err . url = resp . url ; throw err ; }
Constructs and throws a response status error.
Constructs and throws a response status error .