From 40e242b5620a15595cb8881b0cf4f622892abc37 Mon Sep 17 00:00:00 2001 From: PowerGamer1 Date: Tue, 18 Jul 2017 22:59:25 +0300 Subject: [PATCH] Fixes #14469: updated RFC links [skip ci] --- framework/web/BadRequestHttpException.php | 2 +- framework/web/ConflictHttpException.php | 2 +- framework/web/ForbiddenHttpException.php | 2 +- framework/web/GoneHttpException.php | 2 +- framework/web/MethodNotAllowedHttpException.php | 1 + framework/web/NotAcceptableHttpException.php | 2 +- framework/web/NotFoundHttpException.php | 1 + framework/web/ServerErrorHttpException.php | 1 + framework/web/TooManyRequestsHttpException.php | 2 +- framework/web/UnsupportedMediaTypeHttpException.php | 2 +- 10 files changed, 10 insertions(+), 7 deletions(-) diff --git a/framework/web/BadRequestHttpException.php b/framework/web/BadRequestHttpException.php index 34048cf..08f7382 100644 --- a/framework/web/BadRequestHttpException.php +++ b/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 * @since 2.0 */ diff --git a/framework/web/ConflictHttpException.php b/framework/web/ConflictHttpException.php index 2149785..8b11c53 100644 --- a/framework/web/ConflictHttpException.php +++ b/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 * @since 2.0 */ diff --git a/framework/web/ForbiddenHttpException.php b/framework/web/ForbiddenHttpException.php index f08b12e..51e0ff7 100644 --- a/framework/web/ForbiddenHttpException.php +++ b/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 * @since 2.0 */ diff --git a/framework/web/GoneHttpException.php b/framework/web/GoneHttpException.php index 911864b..87faf74 100644 --- a/framework/web/GoneHttpException.php +++ b/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 * @since 2.0 */ diff --git a/framework/web/MethodNotAllowedHttpException.php b/framework/web/MethodNotAllowedHttpException.php index 802d5cb..4241e76 100644 --- a/framework/web/MethodNotAllowedHttpException.php +++ b/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 * @since 2.0 */ diff --git a/framework/web/NotAcceptableHttpException.php b/framework/web/NotAcceptableHttpException.php index f3f6d5a..7bd39cb 100644 --- a/framework/web/NotAcceptableHttpException.php +++ b/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 * @since 2.0 */ diff --git a/framework/web/NotFoundHttpException.php b/framework/web/NotFoundHttpException.php index 68797e9..03ce026 100644 --- a/framework/web/NotFoundHttpException.php +++ b/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 * @since 2.0 */ diff --git a/framework/web/ServerErrorHttpException.php b/framework/web/ServerErrorHttpException.php index d92c72b..42e69c4 100644 --- a/framework/web/ServerErrorHttpException.php +++ b/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 * @since 2.0 */ diff --git a/framework/web/TooManyRequestsHttpException.php b/framework/web/TooManyRequestsHttpException.php index 56586fa..0646434 100644 --- a/framework/web/TooManyRequestsHttpException.php +++ b/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 * @since 2.0 */ diff --git a/framework/web/UnsupportedMediaTypeHttpException.php b/framework/web/UnsupportedMediaTypeHttpException.php index 22ce745..903dd17 100644 --- a/framework/web/UnsupportedMediaTypeHttpException.php +++ b/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 * @since 2.0 */