@Override
    public Map<Errors, Integer> errorCounts() {
        Map<Errors, Integer> errorCounts = new HashMap<>();
        data.results().forEach(topicResult ->
            topicResult.partitions().forEach(partitionResult ->
                updateErrorCounts(errorCounts, Errors.forCode(partitionResult.errorCode()))));
        return errorCounts;
    }
Possible error codes:

{@link Errors#LOG_DIR_NOT_FOUND}
{@link Errors#KAFKA_STORAGE_ERROR}
{@link Errors#REPLICA_NOT_AVAILABLE}
{@link Errors#UNKNOWN_SERVER_ERROR}
clients/src/main/java/org/apache/kafka/common/requests/AlterReplicaLogDirsResponse.java