Spaces:
Runtime error
Runtime error
Download src/exceptions/403.exception.ts from oex2003/evolution-api: direct link, hf CLI and curl.
- Browser
- Download file 281 Bytes
-
https://huggingface.co/spaces/oex2003/evolution-api/resolve/refs%2Fpr%2F1/src/exceptions/403.exception.ts
- Command line
-
hf download hf://spaces/oex2003/evolution-api@refs/pr/1/src/exceptions/403.exception.ts
-
curl -L -o 403.exception.ts https://huggingface.co/spaces/oex2003/evolution-api/resolve/refs%2Fpr%2F1/src/exceptions/403.exception.ts
281 Bytes
| 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, | |
| }; | |
| } | |
| } | |