From 91734ae83bb7d5afae143c1f569fa8cabcd7a802 Mon Sep 17 00:00:00 2001 From: dasmfm <2@borisklimenko.ru> Date: Wed, 27 Apr 2016 14:03:55 +0300 Subject: [PATCH] Fixes #11432: Added HTTP status 421 "Misdirected Request" to list of statuses in `yii\web\Response` Source: http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml --- framework/CHANGELOG.md | 1 + framework/web/Response.php | 1 + 2 files changed, 2 insertions(+) diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 3e818cc..265cfc5 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -6,6 +6,7 @@ Yii Framework 2 Change Log - Bug #11459: Fixed flash messages not destroyed when `session.auto_start = 1` set in php.ini (cartmanchen) - Enh #11414: Files specified as `null` in `yii\web\AssetBundle` won't be registered (Razzwan) +- Eng #11432: Added HTTP status 421 "Misdirected Request" to list of statuses in `yii\web\Response` (dasmfm) 2.0.8 April 28, 2016 diff --git a/framework/web/Response.php b/framework/web/Response.php index 63f842f..2cb5de6 100644 --- a/framework/web/Response.php +++ b/framework/web/Response.php @@ -204,6 +204,7 @@ class Response extends \yii\base\Response 416 => 'Requested range unsatisfiable', 417 => 'Expectation failed', 418 => 'I\'m a teapot', + 421 => 'Misdirected Request', 422 => 'Unprocessable entity', 423 => 'Locked', 424 => 'Method failure',