public RestStatus status(){
  if (state == SnapshotState.FAILED) {
    return RestStatus.INTERNAL_SERVER_ERROR;
  }
  if (shardFailures.size() == 0) {
    return RestStatus.OK;
  }
  return RestStatus.status(successfulShards,totalShards,shardFailures.toArray(new ShardOperationFailedException[shardFailures.size()]));
}

public RestStatus status ( ) { if ( state == SnapshotState . FAILED ) { return RestStatus . INTERNAL_SERVER_ERROR ; } if ( shardFailures . size ( ) == 0 ) { return RestStatus . OK ; } return RestStatus . status ( successfulShards , totalShards , shardFailures . toArray ( new ShardOperationFailedException [ shardFailures . size ( ) ] ) ) ; }
returns snapshot rest status
