Obviously when a website disappears Google etc will stop indexing it at some point, but is there some way for a web server to provide a more formal response indicating that a website is permanently closed, such as setting it to return a particular http status code?
When I try to open in Chrome a website I closed recently I get (actual domain swapped to example.com):
This site can’t be reached
The webpage at http://example.com/ might be temporarily down or it may have moved permanently to a new web address. Search Google for example com ERR_NAME_RESOLUTION_FAILED
With the above kind of error (which may be temporary), it may take some time for search engines to stop retrying a crawl of the site before it gets deindexed. Ideally I'm interested in a way of speeding up that process.