Browse Source

Fixes #14469: updated RFC links [skip ci]

tags/2.0.13
PowerGamer1 7 years ago committed by Alexander Makarov
parent
commit
40e242b562
  1. 2
      framework/web/BadRequestHttpException.php
  2. 2
      framework/web/ConflictHttpException.php
  3. 2
      framework/web/ForbiddenHttpException.php
  4. 2
      framework/web/GoneHttpException.php
  5. 1
      framework/web/MethodNotAllowedHttpException.php
  6. 2
      framework/web/NotAcceptableHttpException.php
  7. 1
      framework/web/NotFoundHttpException.php
  8. 1
      framework/web/ServerErrorHttpException.php
  9. 2
      framework/web/TooManyRequestsHttpException.php
  10. 2
      framework/web/UnsupportedMediaTypeHttpException.php

2
framework/web/BadRequestHttpException.php

@ -15,7 +15,7 @@ namespace yii\web;
* case, consider using the more precise exception to provide the user with
* additional information.
*
* @link https://tools.ietf.org/html/rfc2616#section-10.4.1
* @see https://tools.ietf.org/html/rfc7231#section-6.5.1
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/

2
framework/web/ConflictHttpException.php

@ -10,7 +10,7 @@ namespace yii\web;
/**
* ConflictHttpException represents a "Conflict" HTTP exception with status code 409
*
* @link https://tools.ietf.org/html/rfc2616#section-10.4.10
* @see https://tools.ietf.org/html/rfc7231#section-6.5.8
* @author Dan Schmidt <danschmidt5189@gmail.com>
* @since 2.0
*/

2
framework/web/ForbiddenHttpException.php

@ -15,7 +15,7 @@ namespace yii\web;
* If you do not want to expose authorization information to the user, it is valid
* to respond with a 404 [[NotFoundHttpException]].
*
* @link https://tools.ietf.org/html/rfc7231#section-6.5.3
* @see https://tools.ietf.org/html/rfc7231#section-6.5.3
* @author Dan Schmidt <danschmidt5189@gmail.com>
* @since 2.0
*/

2
framework/web/GoneHttpException.php

@ -15,7 +15,7 @@ namespace yii\web;
* for that record should return a 410 GoneHttpException instead of a 404
* [[NotFoundHttpException]].
*
* @link https://tools.ietf.org/html/rfc2616#section-10.4.11
* @see https://tools.ietf.org/html/rfc7231#section-6.5.9
* @author Dan Schmidt <danschmidt5189@gmail.com>
* @since 2.0
*/

1
framework/web/MethodNotAllowedHttpException.php

@ -10,6 +10,7 @@ namespace yii\web;
/**
* MethodNotAllowedHttpException represents a "Method Not Allowed" HTTP exception with status code 405.
*
* @see https://tools.ietf.org/html/rfc7231#section-6.5.5
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/

2
framework/web/NotAcceptableHttpException.php

@ -14,7 +14,7 @@ namespace yii\web;
* application cannot return. Note that, according to the HTTP 1.1 specification,
* you are not required to respond with this status code in this situation.
*
* @link https://tools.ietf.org/html/rfc2616#section-10.4.7
* @see https://tools.ietf.org/html/rfc7231#section-6.5.6
* @author Dan Schmidt <danschmidt5189@gmail.com>
* @since 2.0
*/

1
framework/web/NotFoundHttpException.php

@ -10,6 +10,7 @@ namespace yii\web;
/**
* NotFoundHttpException represents a "Not Found" HTTP exception with status code 404.
*
* @see https://tools.ietf.org/html/rfc7231#section-6.5.4
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/

1
framework/web/ServerErrorHttpException.php

@ -10,6 +10,7 @@ namespace yii\web;
/**
* ServerErrorHttpException represents an "Internal Server Error" HTTP exception with status code 500.
*
* @see https://tools.ietf.org/html/rfc7231#section-6.6.1
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/

2
framework/web/TooManyRequestsHttpException.php

@ -14,7 +14,7 @@ namespace yii\web;
* given period of time. For example, you would throw this exception when
* 'throttling' an API user.
*
* @link http://tools.ietf.org/search/rfc6585#section-4
* @see https://tools.ietf.org/html/rfc6585#section-4
* @author Dan Schmidt <danschmidt5189@gmail.com>
* @since 2.0
*/

2
framework/web/UnsupportedMediaTypeHttpException.php

@ -15,7 +15,7 @@ namespace yii\web;
* if the client POSTs XML data to an action or controller that only accepts
* JSON.
*
* @link https://tools.ietf.org/html/rfc2616#section-10.4.16
* @see https://tools.ietf.org/html/rfc7231#section-6.5.13
* @author Dan Schmidt <danschmidt5189@gmail.com>
* @since 2.0
*/

Loading…
Cancel
Save