I’m unfortunately getting hundreds of errors from pages that are not loading for Google Search Console that have been indexed from other sources, but are from biography pages that have been unpublished due to people leaving the company.
Is there a way that I can fix this for non-logged-in users? Namely the search bots? Something like adding to the bio template a conditional that checks if the resource is published first? But if not, it redirects to a specific page rather than a 404 or, in this case, a 500 error?
These are specifically throwing errors that are affecting our mobile search results.