Heatzy API for Node.js - v13.0.0
    Preparing search index...

    Variable HttpStatusConst

    HttpStatus: {
        BadGateway: 502;
        BadRequest: 400;
        GatewayTimeout: 504;
        ServiceUnavailable: 503;
        Unauthorized: 401;
    } = ...

    HTTP status codes used across the SDK. Single source so callers don't redefine them per file.

    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.

    • ReadonlyBadRequest: 400

      HTTP 400 — how Gizwits reports an invalid or expired user token (error code 9004 in the body), not 401. Triggers session re-auth alongside HttpStatus.Unauthorized.

    • ReadonlyGatewayTimeout: 504

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

    • ReadonlyServiceUnavailable: 503

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

    • ReadonlyUnauthorized: 401

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