Change http auth code to 401 in Exception handler
This commit is contained in:
parent
77b91a6c09
commit
dd754cf6f9
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue