Merge pull request #7672 from appwrite/fix-error-code
Change status code from 503 to 403
This commit is contained in:
commit
1538f78c18
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue