mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-15 04:49:34 -06:00
12 lines
281 B
TypeScript
12 lines
281 B
TypeScript
import { HttpStatus } from '@api/routes/index.router';
|
|
|
|
export class ForbiddenException {
|
|
constructor(...objectError: any[]) {
|
|
throw {
|
|
status: HttpStatus.FORBIDDEN,
|
|
error: 'Forbidden',
|
|
message: objectError.length > 0 ? objectError : undefined,
|
|
};
|
|
}
|
|
}
|