private ShareGroupDescribeResponse createShareGroupDescribeResponse() {
        ShareGroupDescribeResponseData data = new ShareGroupDescribeResponseData()
                .setGroups(Collections.singletonList(
                        new ShareGroupDescribeResponseData.DescribedGroup()
                                .setGroupId("group")
                                .setErrorCode((short) 0)
                                .setErrorMessage(Errors.forCode((short) 0).message())
                                .setGroupState(ShareGroupState.EMPTY.toString())
                                .setMembers(new ArrayList<>(0))
                ))
                .setThrottleTimeMs(1000);
        return new ShareGroupDescribeResponse(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