From b224aee2fe6b0fecf7204f70802dfae1dac6d1be Mon Sep 17 00:00:00 2001 From: fogelito Date: Thu, 18 Apr 2024 09:58:51 +0300 Subject: [PATCH] GENERAL_ACCESS_FORBIDDEN --- app/controllers/general.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/general.php b/app/controllers/general.php index 139a4ec1b0..a24761d48b 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -351,7 +351,7 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo $utopia->getRoute()?->label('error', ''); return false; } else { - throw new AppwriteException(AppwriteException::GENERAL_SERVER_ERROR, 'Unknown resource type ' . $type); + throw new AppwriteException(AppwriteException::GENERAL_ACCESS_FORBIDDEN, 'Unknown resource type ' . $type); } $utopia->getRoute()?->label('error', '');