1
0
Fork 0
mirror of synced 2024-06-03 03:14:50 +12:00

Merge pull request #7672 from appwrite/fix-error-code

Change status code from 503 to 403
This commit is contained in:
Christy Jacob 2024-02-28 10:41:19 +05:30 committed by GitHub
commit 1538f78c18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -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,

View file

@ -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