MELCloud & MELCloud Home API for Node.js - v48.2.0
    Preparing search index...

    Variable HttpStatusConst

    HttpStatus: {
        BadGateway: 502;
        GatewayTimeout: 504;
        ServiceUnavailable: 503;
        TooManyRequests: 429;
        Unauthorized: 401;
    } = ...

    HTTP status codes used across the SDK. Single source so callers don't redefine them per file (HTTP_STATUS_UNAUTHORIZED was declared in three places before this module existed).

    Restricted to the codes the SDK actually branches on — adding more here without a real call site is dead weight.

    Type Declaration

    • ReadonlyBadGateway: 502

      HTTP 502 — transient upstream failure. Eligible for retry on GET.

    • ReadonlyGatewayTimeout: 504

      HTTP 504 — transient upstream timeout. Eligible for retry on GET.

    • ReadonlyServiceUnavailable: 503

      HTTP 503 — transient service unavailability. Eligible for retry on GET.

    • ReadonlyTooManyRequests: 429

      HTTP 429 — rate limited. Feeds into the rate-limit gate.

    • ReadonlyUnauthorized: 401

      HTTP 401 — authentication required or rejected. Triggers session re-auth.