Custom 404 Error Page

In another post I present a case for using a short, simple text string to report 403-Forbidden errors. For Not Found errors, I want to serve a friendly helpful 404 error page that fits reasonably well with the look and feel of my site. But I still want to limit resource use to the extent practical, otherwise serving a lot of 404 pages could slow my site or even bring it down.

friendly helpful 404 error page

My solution is a custom 404 error page in my child theme, that includes simple html code to display the page with a minimum of resource demands.
* Title
* Custom 404 error page (Not Found).
* @package responsive_mobile_child
* @license CC0, public domain
* @copyright Released, to the extent practical under law
* @since 2017-03-09
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
<title>404 | a WP Point of View</title>
<p style="text-align: center; font-size: 2em; font-family: Verdana, Arial, Helvetica, sans-serif;">a WordPress Point of View</p>
<p style="text-align: center; color: #000080; font-size: 1.5em; font-family: Verdana, Arial, Helvetica, sans-serif;">Oops! The page you requested could not be found.</p>
<p style="text-align: center; font-family: Verdana, Arial, Helvetica, sans-serif;">The page may have moved or may no longer be available, or the URL may be misspelled.</p>
<p style="text-align: center; font-family: Verdana, Arial, Helvetica, sans-serif;">Please return to the <span style="color: #000080; font-size: 1.1em;"><a href="">WP POV home page</a></span>.<br>From there you can search for the lost page, or visit some of our many other pages.</p>
<p style="text-align: center; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 1.1em;">Error code 404 - Page Not Found</p>
<p><a title="" href=""><img style="display: block; margin-left: auto; margin-right: auto;" src="" alt="a WordPress Point of View" width="169" height="100" /></a></p>

WPPOV supports freedom from Net Neutrality and the GDPR. The Internet of the people, by the people, for the people, shall not perish from the Earth.