setStatusCode() public method
Sets the response status code.
This method will set the corresponding status text if $text is null.
| public void setStatusCode ( $value, $text = null ) | ||
|---|---|---|
| $value | integer |
The status code |
| $text | string |
The status text. If not set, it will be set automatically based on the status code. |
| throws | yii\base\InvalidParamException |
if the status code is invalid. |
Please login to continue.