Suppose user hits a dead link /foo. I have two options.
- I can respond with the 404 HTTP status,
X-Robots-Tag: noindexand display a custom error message to the user. - Or, I can redirect user with HTTP status 301 to an
/errorpage that server the 404 message (with the 404 HTTP status and theX-Robots-Tag: noindexheader).
What is the preferred user flow?