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

    Type Alias ErrorResponse<Code>

    Generic error response shape with a specific status code. Used as the base for all error response types (4xx and 5xx).

    type ErrorResponse<Code extends number> = {
        error: string;
        status_code: Code;
    }

    Type Parameters

    • Code extends number

      The HTTP status code (e.g., 400, 401, 500)

    Index

    Properties

    Properties

    error: string

    Error message if the call failed

    status_code: Code

    HTTP-style status code indicating the outcome of the JSBridge method call