export default class UnauthorizedError extends Error { constructor( message: string = 'Unauthorized', ...args: (ErrorOptions | undefined)[] ) { super(message, ...args) } }