Index: modules/node/node.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/node/node.module,v
retrieving revision 1.774
diff -u -p -r1.774 node.module
--- modules/node/node.module	11 Jan 2007 08:51:31 -0000	1.774
+++ modules/node/node.module	13 Jan 2007 11:35:09 -0000
@@ -1151,6 +1151,20 @@ function node_menu($may_cache) {
         );
       }
     }
+    // Error pages must to be present in the menu cache and be accessible to
+    // all. More often than not these are invidual nodes.
+    for ($error_code = 403; $error_code <= 404; $error_code++) {
+      if (preg_match('|^node/(?P<nid>\d+)(?:/view)?$|', drupal_get_normal_path(variable_get('site_'. $error_code, '')), $matches) && ($node = node_load($matches['nid']))) {
+        $items[] = array(
+          'path' => 'node/'. $node->nid,
+          'title' => t('View'),
+          'callback' => 'node_page_view',
+          'callback arguments' => array($node),
+          'access' => TRUE,
+          'type' => MENU_CALLBACK,
+        );
+      }
+    }
   }
   else {
     // Add the CSS for this module
