      throw ErrorQcStatusUnknown(status);
    }
    return std::string{str->data(), str->size()};
  }

  QcStatus parseQcStatus(const frozen::string& statusStr) {
    const auto status = mapFind(qcStringsStatus, statusStr);
    if (!status) {
      throw ErrorAnalysisResultsQcStatusInvalid(statusStr.data());
    }