Setup custom 404 error page
Create a new "Code file" in your # folder
Name the file "404.hash"
Enter any desired HTML content for your 404 error page.
You can use the master page and include directives, read more about this here:
https://developers.docly.net/Blog/2014/Setting-up-and-using-a-Master-Page
The 404.hash may be cached
Generate a static, generic content page only, as the 404.hash may be cached. It cannot read the URL or display specific content.
To display dynamic content, create custom API functions and call them through the JS Fetch API. This allows for redirects and other dynamic actions.
Learn more about creating custom API functions here:
https://developers.docly.net/JavaScript-examples/Custom-API/Create-custom-API-functions