public static DescribeQuorumResponseData singletonErrorResponse(
        TopicPartition topicPartition,
        Errors error
    ) {
        return new DescribeQuorumResponseData()
            .setTopics(Collections.singletonList(new DescribeQuorumResponseData.TopicData()
                .setTopicName(topicPartition.topic())
                .setPartitions(Collections.singletonList(new DescribeQuorumResponseData.PartitionData()
                    .setPartitionIndex(topicPartition.partition())
                    .setErrorCode(error.code())
                    .setErrorMessage(error.message())))));
    }
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