@Override
    public boolean equals(Object o) {
        if (!(o instanceof ApiError)) {
            return false;
        }
        ApiError other = (ApiError) o;
        return Objects.equals(error, other.error) &&
            Objects.equals(message, other.message);
    }
If `message` is defined, return it. Otherwise fallback to the default error message associated with the error
code.
clients/src/main/java/org/apache/kafka/common/requests/ApiError.java