mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-16 03:28:56 +08:00
Adds docblock comments and HTTP spec links for the new HTTP Exception classes (#2103)
This commit is contained in:
@@ -8,8 +8,14 @@
|
||||
namespace yii\web;
|
||||
|
||||
/**
|
||||
* UnauthorizedHttpException represents an "Unauthorized" HTTP exception with status code 401.
|
||||
* 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.
|
||||
*
|
||||
* @link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2
|
||||
* @author Dan Schmidt <danschmidt5189@gmail.com>
|
||||
* @since 2.0
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user