createError.js?16d0:16 Uncaught (in promise) Error: Request failed with status code 500 at createError (createError.js?16d0:16) at settle (settle.js?db52:17) at XMLHttpRequest.handleLoad (xhr.js?ec6c:61) code example
Example: vue axios catch error
axios.get('/user/1').then((response) => {
console.log('Everything is awesome.');
}).catch((error) => {
console.warn('Not good man :(');
})