forked from yiisoft/yii2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reverted yiisoft#13822, clarified exception descriptions
- Loading branch information
Showing
5 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,13 +10,12 @@ | |
/** | ||
* ForbiddenHttpException represents a "Forbidden" HTTP exception with status code 403. | ||
* | ||
* Use this exception when a user has been authenticated but is not allowed to | ||
* perform the requested action. If the user is not authenticated, consider | ||
* using a 401 [[UnauthorizedHttpException]]. If you do not want to | ||
* expose authorization information to the user, it is valid to respond with a | ||
* 404 [[NotFoundHttpException]]. | ||
* Use this exception when a user is not allowed to perform the requested action. | ||
* Using different credentials might or might not allow performing the requested action. | ||
* If you do not want to expose authorization information to the user, it is valid | ||
* to respond with a 404 [[NotFoundHttpException]]. | ||
* | ||
* @link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4 | ||
* @link https://tools.ietf.org/html/rfc7231#section-6.5.3 | ||
* @author Dan Schmidt <[email protected]> | ||
* @since 2.0 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,12 +10,14 @@ | |
/** | ||
* UnauthorizedHttpException represents an "Unauthorized" HTTP exception with status code 401 | ||
* | ||
* Use this exception to indicate that a client needs to authenticate or login | ||
* to perform the requested action. If the client is already authenticated and | ||
* is simply not allowed to perform the action, consider using a 403 | ||
* [[ForbiddenHttpException]] or 404 [[NotFoundHttpException]] instead. | ||
* Use this exception to indicate that a client needs to authenticate via WWW-Authenticate header | ||
* to perform the requested action. | ||
* | ||
* @link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2 | ||
* If the client is already authenticated and is simply not allowed to | ||
* perform the action, consider using a 403 [[ForbiddenHttpException]] | ||
* or 404 [[NotFoundHttpException]] instead. | ||
* | ||
* @link https://tools.ietf.org/html/rfc7235#section-3.1 | ||
* @author Dan Schmidt <[email protected]> | ||
* @since 2.0 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters