Static GitHub Issues

[750] How to trigger error.vue page with other error status than 404 ?

prev: need update on jsdom ?
next: Generating pages without client side js added

Hi Nuxt community,

I have just added the error.vue page of the Nuxt doc example in Layouts, in my project. The error page is triggered with wrong paths : it works !.

I tried to trigger the error page to an error which status is 500 ( replacing 404 by 500 in error.vue), unsuccessfully. What have I to do to trigger the error page with other errors coming from controllers for example ?

Many thanks

Matthieu

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