diff --git a/customerror.module b/customerror.module
index 55b0c0f..66be64c 100644
--- a/customerror.module
+++ b/customerror.module
@@ -94,6 +94,7 @@ function customerror_theme($existing, $type, $theme, $path) {
   return [
     'customerror' => [
       'variables' => [
+        'error_code' => NULL,
         'description' => NULL,
         'login_form' => NULL,
       ],
diff --git a/src/Controller/CustomErrorController.php b/src/Controller/CustomErrorController.php
index b9d0d9d..a5c1504 100644
--- a/src/Controller/CustomErrorController.php
+++ b/src/Controller/CustomErrorController.php
@@ -106,6 +106,7 @@ class CustomErrorController extends ControllerBase {
       '#theme' => 'customerror__' . $code,
       '#description' => $content,
       '#login_form' => $login_form,
+      '#error_code' => $code,
     ];
   }
 
