Extracted from #690 (comment)
Example: the engine renders a huge number "404", however it already responded with HTTP 200:

URL: https://dvc.org/doc/command-reference/bad
It would be ideal if the engine could check for the URL path validity first before responding by rendering the general layout (navigation, etc) with HTTP 200, and render it instead with HTTP 404 (and Page404 ).
This can aid in checking links by running script in #690. Once 404 is returned, we will be able to distinguish between existing pages and Not found ones.
Example: the engine renders a huge number "404", however it already responded with HTTP 200:
It would be ideal if the engine could check for the URL path validity first before responding by rendering the general layout (navigation, etc) with HTTP 200, and render it instead with HTTP 404 (and
Page404).