'How do I customise the 404 page?

I would like to know how to change the text on the 404 page to be custom not the generic message. How would I go about this? The standard 404 page looks like this.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source