There was a lot of discussion about deleted questions over on Meta over the past couple of days. One proposal that came up how to deal with the deletion of questions now deemed off-topic was showing some popular deleted questions to everyone - with the grey look that 10k+ users get when viewing a deleted question.
In that look, the background is greyed out, no interaction is possible, but all the content is still accessible:
I proposed the pages could at the same time send a 404 not found
or 410 gone
if the overwhelming desire is to phase them out from the search index.
So the content would be shown, but a 4xx status code sent.
However, there was a comment critcizing this idea:
Ehhh why send a 404 when the link exists publicly? You're breaking the semantics of the 404 code
I tend to disagree: what is shown in the response body (to satisfy the curiosity of us humans) doesn't really matter, does it? And machines get the 4xx to work with.
Who's right?