private ConsumerGroupDescribeResponse createConsumerGroupDescribeResponse() {
        ConsumerGroupDescribeResponseData data = new ConsumerGroupDescribeResponseData()
            .setGroups(Collections.singletonList(
                new ConsumerGroupDescribeResponseData.DescribedGroup()
                    .setGroupId("group")
                    .setErrorCode((short) 0)
                    .setErrorMessage(Errors.forCode((short) 0).message())
                    .setGroupState(ConsumerGroupState.EMPTY.toString())
                    .setGroupEpoch(0)
                    .setAssignmentEpoch(0)
                    .setAssignorName("range")
                    .setMembers(new ArrayList<ConsumerGroupDescribeResponseData.Member>(0))
            ))
            .setThrottleTimeMs(1000);
        return new ConsumerGroupDescribeResponse(data);
    }
Check that all error codes in the response get included in {@link AbstractResponse#errorCounts()}.
clients/src/test/java/org/apache/kafka/common/requests/RequestResponseTest.java