Class

ForbiddenError

ForbiddenError(messageopt)

Error which is thrown when user doesn't have an access to a given resource/action.

Constructor

# new ForbiddenError(messageopt)

Parameters:
Name Type Attributes Description
message string <optional>

View Source admin-bro/src/backend/utils/errors/forbidden-error.ts, line 12

Classes

ForbiddenError

See Details

Members

string

# baseMessage

Any custom message which should be seen in the UI

View Source admin-bro/src/backend/utils/errors/forbidden-error.ts, line 33

number

# statusCode

HTTP Status code: 403

View Source admin-bro/src/backend/utils/errors/forbidden-error.ts, line 27

SoftwareBrothers

Proudly built and maintained by SoftwareBrothers

Software House with a passion for both JavaScript and TypeScript.

See what we do See what we believe in

Proudly built and maintained by

SoftwareBrothers