@launchdarkly/js-client-sdk-common - v1.35.0
    Preparing search index...

    Function classifyHttpStatus

    • Classifies an HTTP status.

      400, 408, and 429 are normal, as is any 5xx. Every other 4xx, including 401 and 403, is unexpected. Anything outside the error ranges, including 0 for "no response", is normal.

      Parameters

      • status: number

      Returns FailureKind