import { HttpException, HttpStatus } from '@nestjs/common' export class IsAlreadySubscriberError extends HttpException { constructor(readonly login: string) { super( { status: HttpStatus.CONFLICT, message: `Usuário '${login}' já é assinante`, }, HttpStatus.CONFLICT, ) } }