Why api response for inexistent route return html page with status code 200
max5432112345 opened this issue · 1 comments
max5432112345 commented
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
max5432112345 commented
to use Catch-all Route with createError?