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 adminjs/src/backend/utils/errors/forbidden-error.ts, line 8

Classes

ForbiddenError
ForbiddenError

Members

# baseMessage

Any custom message which should be seen in the UI

View Source adminjs/src/backend/utils/errors/forbidden-error.ts, line 16

string

# baseMessage

Any custom message which should be seen in the UI

View Source adminjs/src/backend/utils/errors/forbidden-error.ts, line 41

number

# statusCode

HTTP Status code: 403

View Source adminjs/src/backend/utils/errors/forbidden-error.ts, line 35