file module import { HttpException , HttpStatus } from '@nestjs/common' ; import * as TEXT from '../constants/text.constant' ; class classdesc example example export class HttpForbiddenError extends HttpException { constructor ( error ? ) { super ( error || TEXT . HTTP_PARAMS_PERMISSION_ERROR_DEFAULT , HttpStatus . FORBIDDEN ) ; } }