I'm thinking of using hidden paths to have content aimed at site editors and to avoid using a content access module. However, I wouldn't want the hidden paths message ("Only people with the View hidden paths permission will be able to view this page. Everyone else will receive a "Page not found" error") to show up on each page. Is there a way to write a custom module that would disable it for particular content types?
The function it is set is
/core/modules/node/node.module > node_page_view()