1
0
Fork 0
mirror of synced 2024-09-30 17:26:48 +13:00

feat: add more descriptions

This commit is contained in:
Christy Jacob 2022-01-30 03:12:34 +04:00
parent 8264a8fcd1
commit 6a0b3c328b

View file

@ -19,13 +19,13 @@ return [
], ],
Exception::TYPE_INVALID_ORIGIN => [ Exception::TYPE_INVALID_ORIGIN => [
'name' => Exception::TYPE_INVALID_ORIGIN, 'name' => Exception::TYPE_INVALID_ORIGIN,
'description' => 'Invalid origin', 'description' => 'The request originated from a non-whitelisted origin. If you trust this origin, please add it as a platform in the Appwrite console.',
'statusCode' => 403, 'statusCode' => 403,
], ],
Exception::TYPE_SERVICE_DISABLED => [ Exception::TYPE_SERVICE_DISABLED => [
'name' => Exception::TYPE_SERVICE_DISABLED, 'name' => Exception::TYPE_SERVICE_DISABLED,
'description' => 'Service disabled', 'description' => 'The requested service is disabled. You can toggle the service from the Appwrite console or by contacting the project owner.',
'statusCode' => 403, 'statusCode' => 503,
], ],
Exception::TYPE_UNAUTHORIZED_SCOPE => [ Exception::TYPE_UNAUTHORIZED_SCOPE => [
'name' => Exception::TYPE_UNAUTHORIZED_SCOPE, 'name' => Exception::TYPE_UNAUTHORIZED_SCOPE,