@Override
    public Map<Errors, Integer> errorCounts() {
        Map<Errors, Integer> errors = new HashMap<>();

        errors.put(Errors.forCode(data.errorCode()), 1);

        for (VoteResponseData.TopicData topicResponse : data.topics()) {
            for (VoteResponseData.PartitionData partitionResponse : topicResponse.partitions()) {
                updateErrorCounts(errors, Errors.forCode(partitionResponse.errorCode()));
            }
        }
        return errors;
    }
Possible error codes.

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

Partition level errors:
- {@link Errors#FENCED_LEADER_EPOCH}
- {@link Errors#INVALID_REQUEST}
- {@link Errors#INCONSISTENT_VOTER_SET}
- {@link Errors#UNKNOWN_TOPIC_OR_PARTITION}
clients/src/main/java/org/apache/kafka/common/requests/VoteResponse.java