file module import { HttpException , HttpStatus } from '@nestjs/common' ; import { TExceptionOption } from '../types/interfaces/http.interface' ; class classdesc example example export class CustomError extends HttpException { constructor ( options , statusCode ? ) { super ( options , statusCode || HttpStatus . INTERNAL_SERVER_ERROR ) ; } }