Skip to content

@intutic/clawde / ClawdeBlockedError

Class: ClawdeBlockedError ​

The proxy refused the request: a policy block, a reask, a loop run held for review, a spend cap, a DLP block, or a tool call the model made that the proxy withheld. Never retried — the same request would be refused again. code is the proxy's refusal code, message its reason, and ruleId the rule that decided, when the proxy names one (every refusal it answers with a 200 does).

Extends ​

Constructors ​

Constructor ​

ts
new ClawdeBlockedError(
   verdict, 
   code, 
   status, 
   message, 
   ruleId?, 
   retryAfterSeconds?
): ClawdeBlockedError;

Parameters ​

ParameterType
verdictRefusalVerdict
codestring
statusnumber
messagestring
ruleId?string
retryAfterSeconds?number

Returns ​

ClawdeBlockedError

Overrides ​

ClawdeVerdictError.constructor

Properties ​

PropertyModifierTypeDescriptionOverrides
codereadonlystring--
retryAfterSecondsreadonlynumber | undefinedSeconds until the refusal stops applying, from the proxy's Retry-After: set on RATE_LIMITED (the next minute) and BUDGET_EXCEEDED (the budget's reset). Undefined for a refusal that retrying will not change.-
ruleIdreadonlystring | undefined--
statusreadonlynumber--
verdictpublicRefusalVerdict-ClawdeVerdictError.verdict

The circuit breaker for AI agents