public ClusterManagementResult.StatusCode getStatusCode() {
    return result.getStatusCode();
  }
get the status code of the unsuccessful result

@return the {@link ClusterManagementResult.StatusCode} of the result associated with this
        exception
geode-management/src/main/java/org/apache/geode/management/api/ClusterManagementException.java