src/main/php/response/WebResponse.php
public function setStatusCode(int $statusCode, string $reasonPhrase = null): Response
    {
        $this->status->setCode($statusCode, $reasonPhrase);
        return $this;
    }
public function setStatusCode(int $statusCode, string $reasonPhrase = null): Response
    {
        $this->status->setCode($statusCode, $reasonPhrase);
        return $this;
    }
public function setStatusCode ( int $ statusCode , string $ reasonPhrase = null ) : Response { $ this -> status -> setCode ( $ statusCode , $ reasonPhrase ) ; return $ this ; }
sets the status code to be send

This needs only to be done if another status code then the default one
200 OK should be send.

@param   int     $statusCode
@param   string  $reasonPhrase  optional
@return  \stubbles\webapp\Response
sets the status code to be send