@b-jones-rfd/sp-rest-connect - v5.1.1
    Preparing search index...

    Type Alias FailureCode

    FailureCode:
        | "HTTP"
        | "AUTH"
        | "TIMEOUT"
        | "ABORTED"
        | "NETWORK"
        | "PARSE"
        | "UNKNOWN"

    Classification of a Failure. Branch on this rather than on the error text.

    • HTTP — SharePoint answered with a non-2xx status other than 401/403. See status and details.
    • AUTH — 401 or 403: bad credentials, NTLM rejected, or an expired/missing request digest.
    • TIMEOUT — the socket was idle longer than timeout.
    • ABORTED — the request was cancelled through signal.
    • NETWORK — DNS, connection or TLS failure before a response arrived.
    • PARSE — SharePoint answered 2xx but the body was not in the expected shape.
    • UNKNOWN — anything else.