[Vuejs]-Request with Axios. How to solve the async problem?

0👍

I am pretty sure that if you start using catch() with axios as everyone should always do, you will be able to handle all non 200 responses just fine. Which means 404, 40x, 50x, etc…

axios
.get("https://example.com")
.then(res => console.log(res))
.catch(e => console.log(e))

Leave a comment