Skip to content

Commit ce5e572

Browse files
CCM-13554 - Update 429 response
1 parent e529e52 commit ce5e572

File tree

2 files changed

+35
-14
lines changed

2 files changed

+35
-14
lines changed
Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
{
2-
"errors": [
3-
{
4-
"code": "NOTIFY_QUOTA",
5-
"detail": "You have made too many requests. Please try again later.",
6-
"id": "rrt-1931948104716186917-c-geu2-10664-3111479-3.0",
7-
"links": {
8-
"about": "https://digital.nhs.uk/developer/api-catalogue/nhs-notify-supplier"
9-
},
10-
"status": "429",
11-
"title": "Too many requests"
12-
}
13-
]
2+
"interval": 1,
3+
"limit": 1,
4+
"message": "Your application, Notify-Supplier-App-Restricted - Internal Dev 2, has exceeded its quota of 1 requests every 1 minute(s) and is being rate limited.",
5+
"message_id": "rrt-4773181658036170775-c-geu2-321623-73628915-2",
6+
"policy": "quota",
7+
"ratelimiting_expiry_time_ms": 1765372560000,
8+
"scope": "application",
9+
"timeunit": "minute"
1410
}
Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,33 @@
11
description: Too many requests
22
content:
3-
application/vnd.api+json:
3+
application/json:
44
schema:
5-
$ref: "../../schemas/errorResponse.yml"
5+
type: object
6+
properties:
7+
message:
8+
type: string
9+
example: "Your application has exceeded its quota"
10+
scope:
11+
type: string
12+
example: "application"
13+
policy:
14+
type: string
15+
example: "quota"
16+
limit:
17+
type: integer
18+
example: 300
19+
interval:
20+
type: integer
21+
example: 1
22+
timeunit:
23+
type: string
24+
example: "minute"
25+
ratelimiting_expiry_time_ms:
26+
type: integer
27+
example: 1625498765123
28+
message_id:
29+
type: string
30+
example: "rrt-4773181658036170775-c-geu2-321623-73628915-2"
631
examples:
732
error-too-many-requests:
833
$ref: ../../examples/errors/responses/tooManyRequests.json

0 commit comments

Comments
 (0)