nuxt/framework

Why api response for inexistent route return html page with status code 200

max5432112345 opened this issue · 1 comments

Environment

Linux

Reproduction

Why api response for inexistent route return html page with status code 200

Describe the bug

How to return json with proper status code 404/500 and other?

Additional context

No response

Logs

No response

to use Catch-all Route with createError?