What a server error or a missing page tells Google
When Google asks your site for a page, your server answers with a status code. The code tells Google what happened.
HTTP status codes are generated by the server that's hosting the site when it responds to a request made by a client, for example a browser or a crawler.
Every HTTP status code has a different meaning, but often the outcome of the request is the same.
A missing page
If a page no longer exists, your server should answer with a code that says the page is missing. That tells search engines the page does not exist and the content should not be indexed.
These status codes indicate to search engines that the page doesn't exist and the content should not be indexed.
A server error
If your server fails to answer, Google cannot read the page. Google will slow down and may drop the page from search results over time. Fix the server problem first, then check that the page answers again.