protected function getStatus()
    {
        if ($this->detail instanceof \Throwable) {
            $this->status = $this->createStatusFromException();
        }

        return $this->status;
    }
protected function getStatus()
    {
        if ($this->detail instanceof \Throwable) {
            $this->status = $this->createStatusFromException();
        }

        return $this->status;
    }
protected function getStatus ( ) { if ( $ this -> detail instanceof \ Throwable ) { $ this -> status = $ this -> createStatusFromException ( ) ; } return $ this -> status ; }
Retrieve the API-Problem HTTP status code

If an exception was provided, creates the status code from it;
otherwise, code as provided is used.

@return string
Retrieve the API - Problem HTTP status code