From 49c16a9dad7c2e92d9a5cf5fccfa7b3300cc4ee2 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 31 Oct 2021 15:14:57 +0100 Subject: [PATCH] Fix HTTP Code --- .../PermissionSet/Exception/PermissionSetNotFoundException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Security/PermissionSet/Exception/PermissionSetNotFoundException.php b/src/Security/PermissionSet/Exception/PermissionSetNotFoundException.php index 83678a44c1..b14e4d8320 100644 --- a/src/Security/PermissionSet/Exception/PermissionSetNotFoundException.php +++ b/src/Security/PermissionSet/Exception/PermissionSetNotFoundException.php @@ -8,6 +8,6 @@ class PermissionSetNotFoundException extends \RuntimeException { public function __construct($message = '', Exception $previous = null) { - parent::__construct($message, 500, $previous); + parent::__construct($message, 404, $previous); } }