Moreover, some CMS run their content research process (in the database) in an attempt to retrieve the requested page. This results in the server code being run, the server’s database accessed and the HTML page being dynamically generated. All these processes waste CPU power, RAM and bandwidth.
Avoid dynamic 404 pages, which are personalized according to the URL’s content. Instead, use a single, static 404 page.