public function withStatus($code, $reasonPhrase = '')
    {
        $status = clone $this;
        $status->setStatus($code, $reasonPhrase);
        
        return $status;
    }
public function withStatus($code, $reasonPhrase = '')
    {
        $status = clone $this;
        $status->setStatus($code, $reasonPhrase);
        
        return $status;
    }
public function withStatus ( $ code , $ reasonPhrase = '' ) { $ status = clone $ this ; $ status -> setStatus ( $ code , $ reasonPhrase ) ; return $ status ; }
Create a new response status object with the specified code and phrase.

@param int     $code
@param string  $reasonPhrase
@return ResponseStatus
Create a new response status object with the specified code and phrase .