From dd754cf6f9f71efa057d70b1820592ccf47e46ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Thu, 19 Aug 2021 12:25:00 +0200 Subject: [PATCH] Change http auth code to 401 in Exception handler --- app/Exceptions/Handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 203bbed..9f20eff 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -96,7 +96,7 @@ class Handler extends ExceptionHandler /** @var AuthenticationException $e */ return $this->getReponse( $request, - 407, + 401, ApiError::needAuth()->value, sprintf('%s, %s', ApiError::needAuth()->label, $e->getMessage()) );