diff --git a/app/config/errors.php b/app/config/errors.php index 0aed627dda..e6c9830a30 100644 --- a/app/config/errors.php +++ b/app/config/errors.php @@ -549,7 +549,7 @@ return [ Exception::FUNCTION_EXECUTE_PERMISSION_DENIED => [ 'name' => Exception::FUNCTION_EXECUTE_PERMISSION_DENIED, 'description' => 'To execute function using domain, execute permissions must include "any" or "guests".', - 'code' => 403, + 'code' => 401, ], /** Sites */ diff --git a/tests/e2e/Services/Sites/SitesCustomServerTest.php b/tests/e2e/Services/Sites/SitesCustomServerTest.php index 1f0b0b7be6..a67af33392 100644 --- a/tests/e2e/Services/Sites/SitesCustomServerTest.php +++ b/tests/e2e/Services/Sites/SitesCustomServerTest.php @@ -1654,7 +1654,7 @@ class SitesCustomServerTest extends Scope $response = $proxyClient->call(Client::METHOD_GET, '/'); - $this->assertEquals(401, $response['headers']['status-code']); + $this->assertEquals(404, $response['headers']['status-code']); $this->assertStringContainsString("This domain is not connected to any Appwrite resource yet", $response['body']); $site = $this->createSite([