import { HttpException, HttpStatus } from '@nestjs/common' export class BadAuthenticationError extends HttpException { constructor(readonly login: string, readonly message: string = 'Credenciais inválidas.') { super( { status: HttpStatus.UNAUTHORIZED, message, }, HttpStatus.UNAUTHORIZED, ) } }