diff --git a/framework/yii/web/Response.php b/framework/yii/web/Response.php index 93c031e..12c3f34 100644 --- a/framework/yii/web/Response.php +++ b/framework/yii/web/Response.php @@ -142,7 +142,7 @@ class Response extends \yii\base\Response if ($this->isInvalid()) { throw new InvalidParamException("The HTTP status code is invalid: $value"); } - $this->statusText = isset(self::$statusTexts[$this->_statusCode]) ? self::$statusTexts[$this->_statusCode] : 'Error'; + $this->statusText = isset(self::$statusTexts[$this->_statusCode]) ? self::$statusTexts[$this->_statusCode] : ''; } /**