Spaces:
Runtime error
Runtime error
Download src/common/errors/invalid-invite-code.error.ts from MuhammadNoman7600/qwen_2.5_model: direct link, hf CLI and curl.
- Browser
- Download file 735 Bytes
-
https://huggingface.co/spaces/MuhammadNoman7600/qwen_2.5_model/resolve/main/src/common/errors/invalid-invite-code.error.ts
- Command line
-
hf download hf://spaces/MuhammadNoman7600/qwen_2.5_model/src/common/errors/invalid-invite-code.error.ts
-
curl -L -o invalid-invite-code.error.ts https://huggingface.co/spaces/MuhammadNoman7600/qwen_2.5_model/resolve/main/src/common/errors/invalid-invite-code.error.ts
735 Bytes
| import { BadRequestException } from '@nestjs/common'; | |
| /** | |
| * Thrown by the engine layer when a group invite code cannot be redeemed — it is invalid, expired, | |
| * or revoked. Both engines report this without a distinguishing detail: whatsapp-web.js throws a | |
| * page-side error (or resolves a gid-less result), Baileys resolves undefined or fails the IQ. | |
| * | |
| * Extends NestJS `BadRequestException` so it maps to **HTTP 400** through the built-in exception | |
| * handler — no custom global filter required. Mirrors {@link CallNotFoundError} (404). | |
| */ | |
| export class InvalidInviteCodeError extends BadRequestException { | |
| constructor() { | |
| super('could not join the group — the invite code may be invalid, expired, or revoked'); | |
| } | |
| } | |