diff --git a/workflow/engine/src/ProcessMaker/Policies/AccessControl.php b/workflow/engine/src/ProcessMaker/Policies/AccessControl.php index c08817c0b..f7358b31d 100644 --- a/workflow/engine/src/ProcessMaker/Policies/AccessControl.php +++ b/workflow/engine/src/ProcessMaker/Policies/AccessControl.php @@ -46,7 +46,7 @@ class AccessControl implements iAuthenticate 500, 'Authentication Class should implement iAuthenticate'); } elseif (!$authObj->{Defaults::$authenticationMethod}()) { - throw new RestException(401); + throw new RestException(403, "You don't have permission to access this endpoint or resource on this server."); } } elseif (!$this->verifyAccess(self::$permission)) { throw new RestException(401);