code: protected function makeStatusFromErrorQualifier($qualifier, $defaultStatus = Result::STATUS_ERROR)
      {
          $statusQualMapping = [
              'INF' => Result::STATUS_INFO,
              'WEC' => Result::STATUS_WARN,
              'WZZ' => Result::STATUS_WARN, //Mutually defined warning
              'WA' => Result::STATUS_WARN, //Info line Warning - PNR_AddMultiElements
              'W' => Result::STATUS_WARN,
              'EC' => Result::STATUS_ERROR,
              'ERR' => Result::STATUS_ERROR, //DocRefund_UpdateRefund
              'ERC' => Result::STATUS_ERROR, //DocRefund_UpdateRefund
              'X' => Result::STATUS_ERROR,
              '001' => Result::STATUS_ERROR, //Air_MultiAvailability
              'O' => Result::STATUS_OK,
              'STA' => Result::STATUS_OK,
              'ZZZ' => Result::STATUS_UNKNOWN
          ];
  
          if (array_key_exists($qualifier, $statusQualMapping)) {
              $status = $statusQualMapping[$qualifier];
          } elseif (is_null($qualifier)) {
              $status = $defaultStatus;
          } else {
              $status = Result::STATUS_UNKNOWN;
          }
  
          return $status;
      }
docs: Converts a status code found in an error message to the appropriate status level
  
  if no node found (= $qualifier is a null), $defaultStatus will be used
  
  @param string|null $qualifier
  @param string $defaultStatus the default status to fall back to if no qualifier is present
  @return string Result::STATUS_*