function status (r) {
    if (r.status >= 200 && r.status < 300) {
      return Promise.resolve(r);
    } else {
      console.warn('Looks like there was a problem. Status Code: ' + r.status);
      return Promise.reject(new Error(r.statusText));
    }
  }
// Examine the text in the response
Examine the text in the response
Examine the text in the response
function status (r) {
    if (r.status >= 200 && r.status < 300) {
      return Promise.resolve(r);
    } else {
      console.warn('Looks like there was a problem. Status Code: ' + r.status);
      return Promise.reject(new Error(r.statusText));
    }
  }
function status ( r ) { if ( r . status >= 200 && r . status < 300 ) { return Promise . resolve ( r ) ; } else { console . warn ( 'Looks like there was a problem. Status Code: ' + r . status ) ; return Promise . reject ( new Error ( r . statusText ) ) ; } }
Examine the text in the response
Examine the text in the response