Skip to content

Commit 1289360

Browse files
Change UnauthorizedException http code from 403 to 401
The HTTP standard clearly defines Unauthorized as 401. This change is intended to adhere to said standard. https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401
1 parent 726f71f commit 1289360

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Exceptions/Http/UnauthorizedException.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ class UnauthorizedException extends HttpException
1717
*
1818
* @var int
1919
*/
20-
protected $status = 403;
20+
protected $status = 401;
2121

2222
/**
2323
* An error code.
2424
*
2525
* @var string|null
2626
*/
2727
protected $errorCode = 'unauthorized';
28-
}
28+
}

0 commit comments

Comments
 (0)