diff --git a/url_alias_restriction.module b/url_alias_restriction.module
index cad9c59..fd6a0f0 100644
--- a/url_alias_restriction.module
+++ b/url_alias_restriction.module
@@ -46,9 +46,7 @@ function url_alias_restriction_preprocess_page(&$variables) {
       $alias = explode('/', $alias);
       if (array_shift($alias) == variable_get('url_alias_restriction_element', 'restricted-access')) {
         drupal_add_http_header('Status', '404 Not Found');
-        $fast_404_html = variable_get('404_fast_html', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL "@path" was not found on this server.</p></body></html>');
-        // Replace @path in the variable with the page path.
-        print strtr($fast_404_html, array('@path' => check_plain(request_uri())));
+        drupal_not_found();
         exit;
       }
     }
