I need the child items from folder1 and folder2 to be accessible via url, but I want to get rid of the auto-generated section pages folder1 and folder2. In my case, I want the links to /folder1/ and /folder2/ to return a 404.html page with an appropriate status code.
In the docs, I found that the “disableKinds” attribute disables the generation of the list pages. Everything works well, except that the links to /folder1/ and /folder2/ still return a 200 status code and an empty HTML document. How do I force those list pages to show my styled 404.html page and return a 404 status code?