404 for Deleted Threads

We are running a check on our sidelines and noticed there are a number of links to other threads that are 404'ing because they have been removed. Is there a way to respond with a 200 and custom message that the thread you are looking for no longer exists? A 404 leads a user to believe the link is bad, when in fact it is correct, just the content has been removed.

Thank you!