src/Response.php
public function setStatus($code, $reasonPhrase = null)
    {
        $this->code = (int) $code;

        if ($reasonPhrase !== null) {
            $this->reasonPhrase = $reasonPhrase;
        } elseif (isset(Http::$codes[$this->code])) {
            $this->reasonPhrase = Http::$codes[$this->code];
        }
    }
public function setStatus($code, $reasonPhrase = null)
    {
        $this->code = (int) $code;

        if ($reasonPhrase !== null) {
            $this->reasonPhrase = $reasonPhrase;
        } elseif (isset(Http::$codes[$this->code])) {
            $this->reasonPhrase = Http::$codes[$this->code];
        }
    }
public function setStatus ( $ code , $ reasonPhrase = null ) { $ this -> code = ( int ) $ code ; if ( $ reasonPhrase !== null ) { $ this -> reasonPhrase = $ reasonPhrase ; } elseif ( isset ( Http :: $ codes [ $ this -> code ] ) ) { $ this -> reasonPhrase = Http :: $ codes [ $ this -> code ] ; } }
Sets the status code and reason phrase. If no reason phrase is provided
the standard message according to the status code is used

@param integer $code
@param integer $reasonPhrase
Sets the status code and reason phrase . If no reason phrase is provided the standard message according to the status code is used