From aedded86de1156aec0eb8068a8863fe619e33f37 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Sun, 30 Jan 2022 03:13:55 +0400 Subject: [PATCH] feat: add more desctiptions --- app/config/errorCodes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/config/errorCodes.php b/app/config/errorCodes.php index fd080e4768..494020840c 100644 --- a/app/config/errorCodes.php +++ b/app/config/errorCodes.php @@ -29,8 +29,8 @@ return [ ], Exception::TYPE_UNAUTHORIZED_SCOPE => [ 'name' => Exception::TYPE_UNAUTHORIZED_SCOPE, - 'description' => 'Unauthorized scope', - 'statusCode' => 403, + 'description' => 'The current user is not authorized to access the requested resource.', + 'statusCode' => 401, ], Exception::TYPE_PASSWORD_RESET_REQUIRED => [ 'name' => Exception::TYPE_PASSWORD_RESET_REQUIRED,