Skip to main content
The codes createTappifyHandler answers with itself, keyed by a short name.

Type Declaration

BODY_INVALID

BODY_TOO_LARGE

EVENT_ID_MISSING

HANDLER_MISSING

INTERNAL_ERROR

ROUTE_UNKNOWN

TOKEN_AUDIENCE

TOKEN_INVALID

TOKEN_MISSING

WEBHOOK_REJECTED

Remarks

Every one of these comes from the SDK, not from your own handlers: a route or handler that is not there, a token that is missing or does not verify, a missing event id, a body that is not JSON or is over 1 MB, a webhook Tappify rejected, and the catch-all for an error a handler let escape. Throw a TapServerError with a code of your own for anything your server decides.