Class: RbacUnauthorizedError
Defined in: packages/next/src/errors.ts:4
Thrown by withPermission() / withRole() wrapped server actions when access is denied.
Extends
Error
Constructors
Constructor
ts
new RbacUnauthorizedError(reason, message?): RbacUnauthorizedError;Defined in: packages/next/src/errors.ts:10
Parameters
| Parameter | Type |
|---|---|
reason | FailureReason |
message? | string |
Returns
RbacUnauthorizedError
Overrides
Error.constructor
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
reason | readonly | FailureReason | unauthenticated (no subject) or unauthorized (missing role/permission). | packages/next/src/errors.ts:6 |
status | readonly | 401 | 403 | HTTP-style status: 401 or 403. | packages/next/src/errors.ts:8 |
