Unauthorized: 'Attempted to perform an unauthorized action'

Hierarchy

  • Error
    • UnauthorizedError

Constructors

Properties

code: number = 0x1774
message: string
name: string = 'Unauthorized'
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc