404 status when displaying `Document is empty` message?
I have a static and content/document driven nuxt 3 blog.
It has some placeholder markdown files under
/content/
that just have their front-matter filled out. For example:
When I go to to the above example, example.com/tester
, it displays this error/msg but still returns a 200
status code.
How can I get nuxt to return a 404 status code whenever this Document is empty
error/msg shows up?0 Replies