Skip to content
masterclass Buddy

Arcjet · Method

reason.isError

Arcjet's protect() method runs the configured security rules for a request. It returns a decision that tells your application whether to allow, deny, or handle an error.

Last updated

Syntax

await aj.protect(request, context?)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • ArcjetDecision
  • ArcjetReason
  • protect
  • results
  • isAllowed
  • isDenied
  • isErrored
  • isShield

Source: Arcjet Node.js SDK reference | Arcjet Docs. Checked 2026-11-03.