throw createError({ statusCode: 401, statusMessage: "Usuário já existe", })
throw createError({ statusCode: 401, statusMessage: "Usuário já existe", })
And on the front I got a try catch that successfully catches the error, but on logging the error.statusMessage and error.message it misses characters with diacritics, it returns "Usurio j existe" instead of "Usuário já existe" Am I doing something wrong? On the Network tab, on the error body, statusmessage is correct tho