Maybe you just want the detailed 404 site setting?
That does stuff like
- Oops! This topic has been deleted and is no longer available.
- Oops! That page is private.
- Oops! That page doesn’t exist or is private. (that one didn’t exist–I think you might want to change the text to remove the “or is private” part)