Join our community

Get access to the complete guide to developing and deploying fast, production-ready Nuxt apps.

3-4 Handling Server Errors and 404s

In this lesson, we’ll shift our attention to server-side errors. Many of the same principles apply, but there are some differences between handling client and server-side errors.

We’ll see how we can add a custom error page with error.vue, and how we can use the clearError and useError composables to work with the server-side error object.

useError: https://nuxt.com/docs/api/composables/use-error

clearError: https://nuxt.com/docs/api/utils/clear-error