import { HttpException , HttpStatus } from '@nestjs/common' ; export interface CommonResponseMessage { key : string ; args ? : Record < string , any > ; } export class CommonException extends HttpException { code ? : number ; message : string ; constructor ( response , code ? ) { super ( response , HttpStatus . OK ) ; this . message = JSON . stringify ( response ) ; this . code = code ; } }