private EnvelopeResponse createEnvelopeResponse() {
        EnvelopeResponseData data = new EnvelopeResponseData()
                .setResponseData(ByteBuffer.wrap("data".getBytes(StandardCharsets.UTF_8)))
                .setErrorCode(Errors.NONE.code());
        return new EnvelopeResponse(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