From efe6b948a1c4337d1e7135f58db188e227df3214 Mon Sep 17 00:00:00 2001 From: Vinod Raut Date: Tue, 1 Aug 2017 12:16:36 +0530 Subject: [PATCH] Response code for Authentication required changed to 403 --- src/YesAuthority.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/YesAuthority.php b/src/YesAuthority.php index 9fcb2a4..32ab0af 100644 --- a/src/YesAuthority.php +++ b/src/YesAuthority.php @@ -371,8 +371,8 @@ public function check($accessIdKey = null, $requestForUserId = null, array $opti if($accessDetailsRequired === true) { $result = $this->detailsFormat(false, $accessIdKey, [ - 'response_code' => 511, - 'message' => 'Authentication Required' + 'response_code' => 403, + 'message' => 'Forbidden - Authentication Required' ]); if($this->isDirectChecked === true) {