diff --git a/typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php b/typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php
index 1b46be738e6756b79f3780f8b92705fc8de43771..85b92041009572bbf1f3225634ac0318eefa1f9c 100644
--- a/typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php
+++ b/typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php
@@ -42,7 +42,7 @@ abstract class AbstractExceptionHandler implements ExceptionHandlerInterface, Si
 
     protected bool $logExceptionStackTrace = false;
 
-    public const IGNORED_EXCEPTION_CODES = [
+    protected const IGNORED_EXCEPTION_CODES = [
         1396795884, // Current host header value does not match the configured trusted hosts pattern
         1616175867, // Backend login request is rate limited
         1616175847, // Frontend login request is rate limited