1
0
Fork 0
mirror of synced 2024-06-29 19:50:26 +12: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 => [
'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,
],
Exception::TYPE_SERVICE_DISABLED => [
'name' => Exception::TYPE_SERVICE_DISABLED,
'description' => 'Service disabled',
'statusCode' => 403,
'description' => 'The requested service is disabled. You can toggle the service from the Appwrite console or by contacting the project owner.',
'statusCode' => 503,
],
Exception::TYPE_UNAUTHORIZED_SCOPE => [
'name' => Exception::TYPE_UNAUTHORIZED_SCOPE,