includes status message on error

This commit is contained in:
2026-01-21 18:35:53 +00:00
parent 170d34c08c
commit 3eeaa797ad

View File

@@ -42,7 +42,7 @@ export default defineEventHandler(async (event) => {
} }
) )
if (!req.ok) throw createError({ statusCode: req.status }) if (!req.ok) throw createError({ statusCode: req.status, statusMessage: "Error"})
else { else {
const body = await req.json(); const body = await req.json();