src/main/php/response/Status.php
public function setCode(int $code, string $reasonPhrase = null): self
    {
        $this->code         = $code;
        $this->reasonPhrase = null === $reasonPhrase ? Http::reasonPhraseFor($code) : $reasonPhrase;
        return $this;
    }
public function setCode(int $code, string $reasonPhrase = null): self
    {
        $this->code         = $code;
        $this->reasonPhrase = null === $reasonPhrase ? Http::reasonPhraseFor($code) : $reasonPhrase;
        return $this;
    }
public function setCode ( int $ code , string $ reasonPhrase = null ) : self { $ this -> code = $ code ; $ this -> reasonPhrase = null === $ reasonPhrase ? Http :: reasonPhraseFor ( $ code ) : $ reasonPhrase ; return $ this ; }
sets the status code

If reason phrase is null it will use the default reason phrase for given
status code.

@param   int     $code
@param   string  $reasonPhrase  optional
@return  \stubbles\webapp\response\Status
sets the status code