src/Core/Controller/BaseController.php
protected function setResponseStatus(int $code, string $reasonPhrase = '') : void
    {
        $this->response = $this->response->withStatus($code, $reasonPhrase);
    }
protected function setResponseStatus(int $code, string $reasonPhrase = '') : void
    {
        $this->response = $this->response->withStatus($code, $reasonPhrase);
    }
protected function setResponseStatus ( int $ code , string $ reasonPhrase = '' ) : void { $ this -> response = $ this -> response -> withStatus ( $ code , $ reasonPhrase ) ; }
Sets the response status.

@param int $code
@param string $reasonPhrase [optional]
Sets the response status .