src/Samurai/Component/Response/HttpResponse.php
public function getStatusMessage($status = null)
    {
        if (! $status) $status = $this->getStatus();

        if (! $status || ! isset($this->status_messages[$status])) throw new \LogicException("No such status. -> {$status}");

        return $this->status_messages[$status];
    }
public function getStatusMessage($status = null)
    {
        if (! $status) $status = $this->getStatus();

        if (! $status || ! isset($this->status_messages[$status])) throw new \LogicException("No such status. -> {$status}");

        return $this->status_messages[$status];
    }
public function getStatusMessage ( $ status = null ) { if ( ! $ status ) $ status = $ this -> getStatus ( ) ; if ( ! $ status || ! isset ( $ this -> status_messages [ $ status ] ) ) throw new \ LogicException ( "No such status. -> {$status}" ) ; return $ this -> status_messages [ $ status ] ; }
get status message.

@param   int|null    $status
@return  string
get status message .