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

This course was originally built with Nuxt 3, but it's no longer being maintained. You can still follow the lessons, but make sure to use the exact dependency versions listed in the course repository to avoid breaking changes.

If you’re looking for the most up-to-date and fully supported version, we recommend Mastering Nuxt: Full Stack Unleashed , which uses Nuxt 4 and actively being maintained.