I want to customize error/404 pages.

Edit Site Data → Enter the HTML you wish to display in the "Error Page HTML" field and the HTML will be displayed.
In this case, CSS and other existing site settings will not be inherited, and the HTML will be displayed as is.
The HTML will be enclosed in <div class="notfound"></div>.