protected function createStatusFromException()
    {
        $e      = $this->detail;
        $status = $e->getCode();

        if (empty($status)
            || ($status < 100)
            || ($status > 599)
        ) {
            return 500;
        }

        return $status;
    }
protected function createStatusFromException()
    {
        $e      = $this->detail;
        $status = $e->getCode();

        if (empty($status)
            || ($status < 100)
            || ($status > 599)
        ) {
            return 500;
        }

        return $status;
    }
protected function createStatusFromException ( ) { $ e = $ this -> detail ; $ status = $ e -> getCode ( ) ; if ( empty ( $ status ) || ( $ status < 100 ) || ( $ status > 599 ) ) { return 500 ; } return $ status ; }
Create HTTP status from an exception.

@return string
Create HTTP status from an exception .