@izak0s/spacebring-api - v7.1.0
    Preparing search index...

    Class SpacebringError

    Error thrown when the Spacebring API responds with a non-2xx status.

    Hierarchy

    • Error
      • SpacebringError
    Index
    • Parameters

      • status: number
      • Optionalbody: unknown
      • Optionalrequest: { operation?: string; url?: string }

      Returns SpacebringError

    status: number

    HTTP status code of the failed response.

    body: { message?: string; type?: string } | undefined

    Parsed error body returned by the API, if any.

    operation: string | undefined

    The operation the request targeted, e.g. GET /billing/invoices/v1/{invoiceId}.

    url: string | undefined

    Full URL of the failed request, if known.