import { UnauthorizedException } from '@nestjs/common' ; import * as TEXT from '../constants/text.constant' ; import { TMessage } from '../types/interfaces/http.interface' ; class classdesc example example export class HttpUnauthorizedError extends UnauthorizedException { constructor ( message ? , error ? ) { super ( message || TEXT . HTTP_UNAUTHORIZED_TEXT_DEFAULT , error ) ; } }