I have some questions regarding promise and axios.
In the below axios example, I am wondering how is it defined to run the catch code.
Is it based on response http status code? like 400?
axios.get('/user?ID=12345')
.then(function (response) {
console.log(response);
})
.catch(function (response) {
console.log(response);
});
Thanks.