Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(openapi): list the 404 of the per-session stats route

Yudhi Armyndharisfd9b3e532404
diff --git a/src/modules/stats/stats.controller.ts b/src/modules/stats/stats.controller.ts
index 571643f97..466af5d57 100644
--- a/src/modules/stats/stats.controller.ts
+++ b/src/modules/stats/stats.controller.ts
@@ -47,6 +47,7 @@ export class StatsController {
description: 'Per-session statistics for the requested session.',
type: SessionStatsResponseDto,
})
+ @ApiResponse({ status: 404, description: 'Session not found' })
async getSessionStats(@Param('sessionId') sessionId: string) {
return this.statsService.getSessionStats(sessionId);
}