A few 404s are normal and do not penalise a site. They become a problem when they affect pages that used to receive traffic or external links: those rankings are then lost, and the addresses must be redirected with a 301.
A good 404 page helps visitors move on: an internal search engine, links to the main sections, a reassuring tone.