@ -565,7 +565,7 @@ class Response extends \yii\base\Response
/**
* @return boolean whether this response has a valid [[statusCode]].
*/
public function i sInvalid()
public function getI sInvalid()
{
return $this->getStatusCode() < 100 | | $ this- > getStatusCode() >= 600;
}
@ -573,7 +573,7 @@ class Response extends \yii\base\Response
/**
* @return boolean whether this response is informational
*/
public function i sInformational()
public function getI sInformational()
{
return $this->getStatusCode() >= 100 & & $this->getStatusCode() < 200 ;
}
@ -581,7 +581,7 @@ class Response extends \yii\base\Response
/**
* @return boolean whether this response is successful
*/
public function i sSuccessful()
public function getI sSuccessful()
{
return $this->getStatusCode() >= 200 & & $this->getStatusCode() < 300 ;
}
@ -589,7 +589,7 @@ class Response extends \yii\base\Response
/**
* @return boolean whether this response is a redirection
*/
public function i sRedirection()
public function getI sRedirection()
{
return $this->getStatusCode() >= 300 & & $this->getStatusCode() < 400 ;
}
@ -597,7 +597,7 @@ class Response extends \yii\base\Response
/**
* @return boolean whether this response indicates a client error
*/
public function i sClientError()
public function getI sClientError()
{
return $this->getStatusCode() >= 400 & & $this->getStatusCode() < 500 ;
}
@ -605,7 +605,7 @@ class Response extends \yii\base\Response
/**
* @return boolean whether this response indicates a server error
*/
public function i sServerError()
public function getI sServerError()
{
return $this->getStatusCode() >= 500 & & $this->getStatusCode() < 600 ;
}
@ -613,7 +613,7 @@ class Response extends \yii\base\Response
/**
* @return boolean whether this response is OK
*/
public function i sOk()
public function getI sOk()
{
return 200 === $this->getStatusCode();
}
@ -621,7 +621,7 @@ class Response extends \yii\base\Response
/**
* @return boolean whether this response indicates the current request is forbidden
*/
public function i sForbidden()
public function getI sForbidden()
{
return 403 === $this->getStatusCode();
}
@ -629,7 +629,7 @@ class Response extends \yii\base\Response
/**
* @return boolean whether this response indicates the currently requested resource is not found
*/
public function i sNotFound()
public function getI sNotFound()
{
return 404 === $this->getStatusCode();
}
@ -637,7 +637,7 @@ class Response extends \yii\base\Response
/**
* @return boolean whether this response is empty
*/
public function i sEmpty()
public function getI sEmpty()
{
return in_array($this->getStatusCode(), array(201, 204, 304));
}