Spaces:
Runtime error
Runtime error
Download src/common/errors/engine-refused.error.ts from MuhammadNoman7600/qwen_2.5_model: direct link, hf CLI and curl.
- Browser
- Download file 677 Bytes
-
https://huggingface.co/spaces/MuhammadNoman7600/qwen_2.5_model/resolve/main/src/common/errors/engine-refused.error.ts
- Command line
-
hf download hf://spaces/MuhammadNoman7600/qwen_2.5_model/src/common/errors/engine-refused.error.ts
-
curl -L -o engine-refused.error.ts https://huggingface.co/spaces/MuhammadNoman7600/qwen_2.5_model/resolve/main/src/common/errors/engine-refused.error.ts
677 Bytes
| import { ForbiddenException } from '@nestjs/common'; | |
| /** | |
| * Thrown by the engine layer when WhatsApp refuses an otherwise well-formed operation — e.g. editing | |
| * a message that is not the account's own, a group settings write without admin rights, or a profile | |
| * change the engine reports as rejected. The request was valid; the refusal happened WhatsApp-side. | |
| * | |
| * Extends NestJS `ForbiddenException` so it maps to **HTTP 403** through the built-in exception | |
| * handler — no custom global filter required. Mirrors {@link CallNotFoundError} (404). | |
| */ | |
| export class EngineRefusedError extends ForbiddenException { | |
| constructor(detail: string) { | |
| super(detail); | |
| } | |
| } | |