public static DescribeQuorumResponseData singletonResponse(
        TopicPartition topicPartition,
        DescribeQuorumResponseData.PartitionData partitionData,
        DescribeQuorumResponseData.NodeCollection nodes
    ) {
        DescribeQuorumResponseData res = new DescribeQuorumResponseData()
            .setTopics(Collections.singletonList(new DescribeQuorumResponseData.TopicData()
                .setTopicName(topicPartition.topic())
                .setPartitions(Collections.singletonList(partitionData
                    .setPartitionIndex(topicPartition.partition())))));

        if (nodes != null)
            res.setNodes(nodes);

        return res;
    }
Possible error codes.

Top level errors:
- {@link Errors#CLUSTER_AUTHORIZATION_FAILED}
- {@link Errors#BROKER_NOT_AVAILABLE}

Partition level errors:
- {@link Errors#NOT_LEADER_OR_FOLLOWER}
- {@link Errors#UNKNOWN_TOPIC_OR_PARTITION}
clients/src/main/java/org/apache/kafka/common/requests/DescribeQuorumResponse.java