Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(label): declare the unknown label 404 on POST chat/:chatId

Yudhi Armyndharise5331c7d424a
diff --git a/src/modules/label/label.controller.ts b/src/modules/label/label.controller.ts
index 3450df2e9..78a6ba49e 100644
--- a/src/modules/label/label.controller.ts
+++ b/src/modules/label/label.controller.ts
@@ -183,7 +183,9 @@ export class LabelController {
@ApiResponse({ status: 200, description: 'Label added to chat', type: LabelAckResponseDto })
@ApiResponse({
status: 404,
- description: 'The chat does not exist on this session, so nothing was written (whatsapp-web.js)',
+ description:
+ 'The chat does not exist on this session, or the account has no label with this id, so nothing was ' +
+ 'written (whatsapp-web.js)',
})
@ApiResponse({
status: 422,