# global nuxt middleware runs when api returns error