I have a page with asyncData/fetch and need to set context.res.statusCode
(to 404,...) in some situtation.
(without using any context.callback
/context.error
)
Current behavior: Nuxt renders error layout (like error/callback does).
Expected behavior:
Rendering current page with what statusCode
i set.
p.s: This issue may related to https://github.com/nuxt/nuxt.js/issues/2850
<!--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/c2617">#c2617</a>)</em></sub></div>