Zola will look for a 404.html file in the templates directory or use the built-in one. The default template is very basic and gets config in its context.
404.html
templates
config