Dingo\Api\Exception\Handler::getStatusCode PHP 메소드

getStatusCode() 보호된 메소드

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