Skip to content

hookDeniedStatus

function hookDeniedStatus(error): number | null;

Defined in: src/hooks/contract.ts:120

The status of a hook denial — a HookDeniedError, or a foreign-bundle copy of it recognised by name (default 403 when it carries no numeric status) — or null when error is not a denial.

Parameter Type
error unknown

number | null