How to fix soft 404 errors?

I’ve merged the two topics to keep the discussion all in one place. Please don’t start more than one thread for the same issue.