From 636bcf150312139a0af22b7d5ccf80b827f97c3c Mon Sep 17 00:00:00 2001 From: Jose Luis Urien Date: Wed, 29 May 2024 20:38:25 +0200 Subject: [PATCH] Add error 429 QUOTA_EXCEEDED --- code/API_definitions/quality-on-demand.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/code/API_definitions/quality-on-demand.yaml b/code/API_definitions/quality-on-demand.yaml index 5363730a65..c30871db69 100644 --- a/code/API_definitions/quality-on-demand.yaml +++ b/code/API_definitions/quality-on-demand.yaml @@ -252,6 +252,23 @@ paths: status: 409 code: CONFLICT message: "Another session is created for the same device" + "429": + description: Rate limit or quota exceeded + headers: + x-correlator: + $ref: '#/components/headers/x-correlator' + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorInfo" + examples: + QuotaExceeded: + summary: Quota exceeded + description: The requested duration exceeds the overall sessions time cap for this device or application, in certain period of time or contract duration. + value: + status: 429 + code: QUOTA_EXCEEDED + message: "Requested duration exceeds the contracted quota for the current device" "500": $ref: "#/components/responses/Generic500" "501":