Nuxt/test/fixtures/basic/server/api/error.ts

4 lines
92 B
TypeScript
Raw Permalink Normal View History

export default defineEventHandler(async () => {
throw createError({ statusCode: 400 })
})