Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
import { NotFoundException } from '@nestjs/common';
/**
* Thrown by the engine layer when a label id does not resolve — the label was never created, or the
* account is not a WhatsApp Business one and therefore holds no labels at all. Both are the same
* answer to the caller, and the same message shape LabelService.getLabelById already returns.
*
* Extends NestJS `NotFoundException` so it maps to **HTTP 404** through the built-in exception
* handler — no custom global filter required. Mirrors {@link GroupNotFoundError}.
*/
export class LabelNotFoundError extends NotFoundException {
constructor(labelId: string) {
super(`Label ${labelId} not found`);
}
}