From 8264a8fcd1024448fb1bd0fd5a17330944f83d51 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Sun, 30 Jan 2022 03:08:56 +0400 Subject: [PATCH] feat: improve description --- 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 b8b2d99a64..5cf9043baa 100644 --- a/app/config/errorCodes.php +++ b/app/config/errorCodes.php @@ -9,13 +9,13 @@ use Appwrite\Extend\Exception; return [ Exception::TYPE_PROJECT_NOT_FOUND => [ 'name' => Exception::TYPE_PROJECT_NOT_FOUND, - 'description' => 'The requested project could not be found. Please check the value of the `X-Appwrite-Project` header to ensure the correct project ID is being used.', + 'description' => 'The requested project could not be found. Please check the value of the X-Appwrite-Project header to ensure the correct project ID is being used.', 'statusCode' => 404, ], Exception::TYPE_PROJECT_UNKNOWN => [ 'name' => Exception::TYPE_PROJECT_UNKNOWN, - 'description' => 'Project unknown', - 'statusCode' => 500, + 'description' => 'The project ID is either missing or not valid. Please check the value of the X-Appwrite-Project header to ensure the correct project ID is being used.', + 'statusCode' => 400, ], Exception::TYPE_INVALID_ORIGIN => [ 'name' => Exception::TYPE_INVALID_ORIGIN,