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 77b91a6c09
commit dd754cf6f9

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