constructor()

in src/errors/UnauthorizedError.ts [10:16]


    constructor(message = 'Forbidden') {
        // Node Error class requires passing a string message to the parent class
        super(message);
        Object.setPrototypeOf(this, UnauthorizedError.prototype);
        this.name = this.constructor.name;
        this.isUnauthorizedError = true;
    }