This method will set the corresponding status text if $text is null.
public setStatusCode ( integer $value, string $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. |