Static GitHub Issues

[2248] Cannot read property 'status' of undefined

prev: API call return 404 error but Nuxt assign 500 statusCode
next: How to handle errors with Dynamic pages and when asyncData hit 404 API response?

How to catch this kind of error? I got this when I hit non-existing route while using axios-module Error handler.

fuck

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1972">#c1972</a>)</em></sub></div>