How to improve the error message 404?

How to improve the error message 404?

When we click on the page, which is unavailable, an error message is displayed 404 – page not found. Such information often disappoints the user and discourages them from further searching for certain content. Dlatego

What to do with pages that do not exist? Redirect to the home page?

What to do with pages that do not exist? Redirect to the home page?

Google has it to himself, that non-existent pages can appear in the search engine's index long after they ceased to exist.

The most effective way to make the optimal, both for users and search engines, …