Your published folders can contain a folder called #. This will contain all definitions used to generate your site. Using this folder you can customize the way your website looks and works.
Code example list files in folder
Listing files in current folder
Setup custom 404 error page
How to make your own template for showing "page not found" in your published folders.