Dingo\Api\Exception\Handler::getStatusCode PHP Méthode

getStatusCode() protected méthode

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