Page Contents

Home > @loopback/authorization > AuthorizationOptions > defaultStatusCodeForDeny

AuthorizationOptions.defaultStatusCodeForDeny property

Default HTTP status code when the final decision is AuthorizationDecision.DENY. If not set, default to 403

Signature:

defaultStatusCodeForDeny?: number;