private GetTelemetrySubscriptionsResponse createGetTelemetrySubscriptionsResponse() {
        GetTelemetrySubscriptionsResponseData response = new GetTelemetrySubscriptionsResponseData();
        response.setClientInstanceId(Uuid.randomUuid());
        response.setSubscriptionId(1);
        response.setAcceptedCompressionTypes(Collections.singletonList(CompressionType.GZIP.id));
        response.setPushIntervalMs(60 * 1000);
        response.setDeltaTemporality(false);
        response.setErrorCode(Errors.NONE.code());
        response.setThrottleTimeMs(10);
        return new GetTelemetrySubscriptionsResponse(response);
    }
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