'use strict'
// @ts-check
const BaseError = require('./base_error')
/**
*
*
* @class AuthenticationError
* @extends {BaseError}
*/
class AuthenticationError extends BaseError {
/**
*Creates an instance of AuthenticationError.
* @param {*} message
* @param {*} args
* @memberof AuthenticationError
*/
constructor(message, ...args) {
super(message, ...args)
this.status = 401
}
}
module.exports = AuthenticationError
Source