diff --git a/app/config/errors.php b/app/config/errors.php index 7dedc373ef..9e1e806622 100644 --- a/app/config/errors.php +++ b/app/config/errors.php @@ -31,7 +31,7 @@ return [ Exception::GENERAL_SERVICE_DISABLED => [ 'name' => Exception::GENERAL_SERVICE_DISABLED, 'description' => 'The requested service is disabled. You can enable the service from the Appwrite console.', - 'code' => 503, + 'code' => 403, ], Exception::GENERAL_UNAUTHORIZED_SCOPE => [ 'name' => Exception::GENERAL_UNAUTHORIZED_SCOPE, diff --git a/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php b/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php index 4a3e25ba29..574ff7dcc5 100644 --- a/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php +++ b/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php @@ -1850,7 +1850,7 @@ class ProjectsConsoleClientTest extends Scope 'x-appwrite-project' => $id, ], $this->getHeaders())); - $this->assertEquals(503, $response['headers']['status-code']); + $this->assertEquals(403, $response['headers']['status-code']); $response = $this->client->call(Client::METHOD_POST, '/teams', array_merge([ 'content-type' => 'application/json', @@ -1860,7 +1860,7 @@ class ProjectsConsoleClientTest extends Scope 'name' => 'Arsenal' ]); - $this->assertEquals(503, $response['headers']['status-code']); + $this->assertEquals(403, $response['headers']['status-code']); // Cleanup