Dingo\Api\Exception\Handler::getStatusCode PHP Method

getStatusCode() protected method

Get the status code from the exception.
protected getStatusCode ( Exception $exception ) : integer
$exception Exception
return integer
    protected function getStatusCode(Exception $exception)
    {
        return $exception instanceof HttpExceptionInterface ? $exception->getStatusCode() : 500;
    }