How to handle errors - Nuxt