EU Parliament Monitor — API Documentation - v0.9.24
    Preparing search index...

    Function throwGatewayResponseError

    • Throw an appropriate error for a non-OK gateway response. Extracted to keep sendGatewayRequest's cognitive complexity manageable.

      Parameters

      • response: Response

        The non-OK fetch Response

      • ctx: GatewayContext

        Gateway context (used to clear session on 401)

      Returns never