@grabjs/superapp-sdk
    Preparing search index...

    Type Alias SendResponse

    SendResponse:
        | { status_code: 204 }
        | { error: string; status_code: 400 }
        | { error: string; status_code: 403 }
        | { error: string; status_code: 500 }
        | { error: string; status_code: 501 }
        | { error: string; status_code: 404 }
        | { error: string; status_code: 424 }
        | { error: string; status_code: 426 }
        | { result: { [key: string]: unknown }; status_code: 200 }
        | { error: string; status_code: 401 }

    Response when sending a network request.

    This response can have any HTTP status code returned by the external API:

    • Success codes (2xx): Contains the result with response data, except 204 which has no body.
    • Client error codes (4xx): Contains an error message from the API.
    • Server error codes (5xx): Contains an error message from the API.
    • SDK error codes (400, 500, 501): Invalid request, internal SDK error, or not implemented.