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