Licson Lee says to OwO
xhr.then(function () { ... }).catch(function (e) { ... });