AIRI Server API - v0.10.2
    Preparing search index...

    Function parseServerErrorMessage

    • Parses a server error message and classifies it.

      Use when:

      • Receiving error messages from the server
      • Determining whether to retry or give up
      • Checking if the error is authentication-related

      Expects:

      • Message string that matches one of ServerErrorMessages or starts with 'invalid JSON, error: '

      Returns:

      • Parsed error with classification (code, authentication, recoverable, terminal)

      Parameters

      • message: string

      Returns ParsedServerErrorMessage