How can I alter the HTML output of the default 403 and 404 error messages without hacking core?
I know I can create custom pages via the UI, but this doesn't work for me because I need to deny access to all published pages to anonymous users.
Notes:
- I believe the default 403 and 404 messages come from lines 2624 and 2653 on common.inc. This is what is generating my output at the moment - I assume. I don't think I can use a node for my output instead because anon users don't have permission to view published content.
- I wanted to alter/override the default 403/404 messages outputed by common.inc. I can't redirect to a node because anon users don't have permission to view nodes.