import { HttpException, HttpStatus } from '@nestjs/common' export class UnprocessableEntityError extends HttpException { constructor(readonly message: string) { super( { status: HttpStatus.UNPROCESSABLE_ENTITY, message: message, }, HttpStatus.UNPROCESSABLE_ENTITY, ) } }