mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-16 20:22:54 -06:00
12 lines
289 B
TypeScript
12 lines
289 B
TypeScript
import { HttpStatus } from '../whatsapp/routers/index.router';
|
|
|
|
export class ForbiddenException {
|
|
constructor(...objectError: any[]) {
|
|
throw {
|
|
status: HttpStatus.FORBIDDEN,
|
|
error: 'Forbidden',
|
|
message: objectError.length > 0 ? objectError : undefined,
|
|
};
|
|
}
|
|
}
|