private DescribeLogDirsResponse createDescribeLogDirsResponse() {
        DescribeLogDirsResponseData data = new DescribeLogDirsResponseData()
                .setResults(singletonList(new DescribeLogDirsResponseData.DescribeLogDirsResult()
                        .setErrorCode(Errors.NONE.code())
                        .setLogDir("logdir")
                        .setTopics(singletonList(new DescribeLogDirsResponseData.DescribeLogDirsTopic()
                                .setName("topic1")
                                .setPartitions(singletonList(new DescribeLogDirsResponseData.DescribeLogDirsPartition()
                                        .setPartitionIndex(0)
                                        .setIsFutureKey(false)
                                        .setOffsetLag(123L)
                                        .setPartitionSize(234L)))))))
                .setThrottleTimeMs(123);
        return new DescribeLogDirsResponse(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