WhatsAppErrorCode
constWhatsAppErrorCode:Readonly<{ACCESS_TOKEN_EXPIRED:190;ACCOUNT_LIMIT_REACHED:133016;API_METHOD:100;AUTH_EXCEPTION:0;BUSINESS_ACCOUNT_RESTRICTED:131031;INVALID_PHONE_NUMBER:1013;MEDIA_DOWNLOAD_ERROR:131053;MESSAGE_UNDELIVERABLE:131026;PERMISSION_DENIED:10;RATE_LIMIT_HIT:130429;RE_ENGAGEMENT_MESSAGE:131047;SPAM_RATE_LIMIT_HIT:131048;TEMPLATE_NOT_EXIST:132001;TEMPLATE_PARAM_MISMATCH:132000;TOO_MANY_MESSAGES:131056; }>
Defined in: src/errors.ts:21
Ergonomic constants for common WhatsApp Cloud API (Graph) error codes.
These mirror the numeric code values Meta returns in a Graph error
envelope, so callers can compare err.code against a named constant instead
of a magic number. Values are authoritative per the WhatsApp Cloud API error
reference; the map is frozen (as const) and acts as the single source of
truth for the code sets used by this module’s error mapping.
https://developers.facebook.com/docs/whatsapp/cloud-api/support/error-codes
Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.