Spaces:
Runtime error
Runtime error
Download src/exceptions/401.exception.ts from oex2003/evolution-api: direct link, hf CLI and curl.
- Browser
- Download file 295 Bytes
-
https://huggingface.co/spaces/oex2003/evolution-api/resolve/refs%2Fpr%2F1/src/exceptions/401.exception.ts
- Command line
-
hf download hf://spaces/oex2003/evolution-api@refs/pr/1/src/exceptions/401.exception.ts
-
curl -L -o 401.exception.ts https://huggingface.co/spaces/oex2003/evolution-api/resolve/refs%2Fpr%2F1/src/exceptions/401.exception.ts
295 Bytes
| import { HttpStatus } from '@api/routes/index.router'; | |
| export class UnauthorizedException { | |
| constructor(...objectError: any[]) { | |
| throw { | |
| status: HttpStatus.UNAUTHORIZED, | |
| error: 'Unauthorized', | |
| message: objectError.length > 0 ? objectError : 'Unauthorized', | |
| }; | |
| } | |
| } | |