private UpdateFeaturesResponse createUpdateFeaturesResponse() {
        UpdateFeaturesResponseData.UpdatableFeatureResultCollection results = new UpdateFeaturesResponseData.UpdatableFeatureResultCollection();
        results.add(new UpdateFeaturesResponseData.UpdatableFeatureResult()
                .setFeature("feature1")
                .setErrorCode(Errors.NONE.code())
                .setErrorMessage("error message"));
        UpdateFeaturesResponseData data = new UpdateFeaturesResponseData()
                .setErrorCode(Errors.NONE.code())
                .setThrottleTimeMs(123)
                .setResults(results)
                .setErrorMessage("error message");
        return new UpdateFeaturesResponse(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