From 6a0b3c328b2fcd9d1351f61d450f4c4122bc9f35 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Sun, 30 Jan 2022 03:12:34 +0400 Subject: [PATCH] feat: add more descriptions --- app/config/errorCodes.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/config/errorCodes.php b/app/config/errorCodes.php index 5cf9043baa..fd080e4768 100644 --- a/app/config/errorCodes.php +++ b/app/config/errorCodes.php @@ -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,