import { Response } from 'express' export class ApiError { constructor(res: Response, errorTitle: string, errorMessage: string, errorCode: number){ res.status(errorCode).send({ message: errorMessage }) } }