Change http auth code to 401 in Exception handler

This commit is contained in:
Jérémy Munsch 2021-08-19 12:25:00 +02:00
parent c4350719b8
commit e5d6411a10

View file

@ -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())
);