We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52cff05 commit 1d9a9f0Copy full SHA for 1d9a9f0
modules/runtime/server/cache.ts
@@ -866,7 +866,10 @@ export default defineNitroPlugin(nitroApp => {
866
headers: { 'content-type': 'application/json' },
867
})
868
}
869
- return new Response('Not Found', { status: 404 })
+ return new Response(JSON.stringify({ error: 'Not Found' }), {
870
+ status: 404,
871
+ headers: { 'content-type': 'application/json' },
872
+ })
873
} catch (err: any) {
874
// Convert createError exceptions to proper HTTP responses
875
const statusCode = err?.statusCode || err?.status || 404
0 commit comments