Skip to content

WhatsAppApiErrorFields

Defined in: src/errors.ts:66

Fields describing a Graph API error response.

code: number

Defined in: src/errors.ts:70

Numeric Graph API error code.


optional details?: string

Defined in: src/errors.ts:76

Additional details from the error envelope.


optional fbtraceId?: string

Defined in: src/errors.ts:78

Internal trace identifier for Meta support.


httpStatus: number

Defined in: src/errors.ts:68

HTTP status code of the failing response.


raw: unknown

Defined in: src/errors.ts:80

The raw parsed body (envelope or text) for debugging.


optional subcode?: number

Defined in: src/errors.ts:72

More granular numeric subcode, when present.


optional type?: string

Defined in: src/errors.ts:74

Error category, e.g. OAuthException.

Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.