Static GitHub Issues

[2761] How to set 404 statusCode for current page?

prev: How to proxy other API routes based on Nuxtjs "Auth Route" example
next: What does 'offline' and 'cache' setting mean in nuxt.config?

Hi guys!

If some data not found, I want to stay on the current page (layout) but with 404 statusCode, without redirection. Is it possible?

<!--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/c2396">#c2396</a>)</em></sub></div>