Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs(api): order the start cap 400 after the 404 and other-node 409
Yudhi Armyndharis7647d4924b8e
diff --git a/openapi.json b/openapi.jsonindex 5d9757add..446fa65a5 100644--- a/openapi.json+++ b/openapi.json@@ -1228,7 +1228,7 @@}},"400": {- "description": "Session already started",+ "description": "Session already started or already starting, or this node is at its MAX_CONCURRENT_SESSIONS cap (`Maximum concurrent sessions reached (N)`), answered only after the 404 and the 409 for a session running on another node; a start refused at the cap launches nothing and leaves a stop in place.","content": {"application/json": {"schema": {diff --git a/src/modules/session/session.controller.ts b/src/modules/session/session.controller.tsindex cd48ba8cb..f2ccd5f2c 100644--- a/src/modules/session/session.controller.ts+++ b/src/modules/session/session.controller.ts@@ -306,8 +306,9 @@ export class SessionController {status: 400,description:'Session already started or already starting, or this node is at its MAX_CONCURRENT_SESSIONS cap ' +- '(`Maximum concurrent sessions reached (N)`); a start refused at the cap launches nothing ' +- 'and leaves a stop in place.',+ '(`Maximum concurrent sessions reached (N)`), answered only after the 404 and the 409 for a ' ++ 'session running on another node; a start refused at the cap launches nothing and leaves a ' ++ 'stop in place.',})@ApiResponse({ status: 404, description: 'Session not found' })@ApiResponse({