mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2026-01-24 20:40:01 -06:00
init project evolution api
This commit is contained in:
11
src/exceptions/403.exception.ts
Normal file
11
src/exceptions/403.exception.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
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,
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user