diff --git a/packages/nuxt/src/core/runtime/nitro/error.ts b/packages/nuxt/src/core/runtime/nitro/error.ts index f41039dc00..6d0e2a902b 100644 --- a/packages/nuxt/src/core/runtime/nitro/error.ts +++ b/packages/nuxt/src/core/runtime/nitro/error.ts @@ -15,7 +15,8 @@ export default async function errorhandler (_error, event) { message, description: process.env.NODE_ENV === 'development' && statusCode !== 404 ? `
${stack.map(i => `${i.text}`).join('\n')}
` - : '' + : '', + data: (_error as any).data } // Set response code and message