Optional ReadonlycauseOptional ReadonlycodeOptional ReadonlymetadataReadonlystatusConverts the error to a formatted string representation.
Optionalmultiline: boolean
Determine if output value must be multiline or not.
A formatted error string.
StaticcreateCreate a RuntimeError.
Optionaloptions: ErrorOptions
The options to create a RuntimeError.
A new RuntimeError instance.
Thrown when an authenticated principal lacks a required scope. Carries
statusCode = 403.Named for what happened rather than for the category it belongs to. It used to be
AuthorizationError, which@stone-js/authzalso exports for a policy denial — two packages, one name, and an application mapping errors had to map both and hope it had guessed which was which. Both throw sites here say "missing required scope", so this says it too.