import { HttpException, HttpStatus } from '@nestjs/common'; export class NotFoundException extends HttpException { constructor( message = 'Not Found', // errorCode = 'INTERNAL_ERROR', // data: any = null, ) { super( { statusCode: HttpStatus.NOT_FOUND , message, // errorCode, // data, }, HttpStatus.NOT_FOUND, ); } }