The status pages "404 Page not found" is very basic, add support for customized pages. Point to a directory, in which there are files matching the status code. status 404 -> 404.html or 404.py, then just return the content.