You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: draft-ietf-httpapi-ratelimit-headers.md
+98-3Lines changed: 98 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@ entity:
44
44
normative:
45
45
IANA: RFC8126
46
46
HTTP: RFC9110
47
+
PROBLEM: RFC9457
47
48
48
49
informative:
49
50
PRIVACY: RFC6973
@@ -105,6 +106,8 @@ The term Origin is to be interpreted as described in Section 7 of{{!WEB-ORIGIN=R
105
106
106
107
This document uses the terms List, Item and Integer from {{Section 3 of !STRUCTURED-FIELDS=RFC8941}} to specify syntax and parsing, along with the concept of "bare item".
107
108
109
+
The term "problem type" in this document is to be interpreted as described in [PROBLEM].
110
+
108
111
# Terminology
109
112
110
113
Quota:
@@ -294,6 +297,53 @@ This example shows a 300MB remaining quota for an application in the next 60 sec
This section defines the "https://iana.org/assignments/http-problem-types#quota-exceeded" problem type. A server MAY use this problem type if it wants to communicate to the client that the requests sent by the client exceed one or more Quota Policies. This problem type defines the extension member "violated-policies" as an array of strings, whose value is the names of policies where the quota was exceeded.
"title": "Request cannot be satisifed as assigned quota has been exceeded",
313
+
"violated-policies": ["daily","bandwidth"]
314
+
}
315
+
~~~
316
+
317
+
## Temporary Reduced Capacity
318
+
319
+
This section defines the "https://iana.org/assignments/http-problem-types#temporary-reduced-capacity" problem type. A server MAY use this problem type if it wants to communicate to the client that the requests sent by the client exceed cannot currently be satisfied due to a temporary reduction in capacity due to service limitations. The server MAY chose to include a RateLimit-Policy field indicating the new temporarily lower quota. This problem type defines the extension member "violated-policies" as an array of strings, whose value is the names of policies where the quota was exceeded.
"title": "Request cannot be satisifed due to temporary server capacity constraints",
328
+
"violated-policies": ["hourly"]
329
+
}
330
+
~~~
331
+
332
+
## Abnormal Usage Detected
333
+
334
+
This section defines the "https://iana.org/assignments/http-problem-types#abnormal-usage-detected" problem type. A server MAY use this problem type to communicate to the client that it has detected a pattern of requests that suggest unintentional or malicous behaviour on the part of the client. This problem type defines the extension member "violated-policies" as an array of strings, whose value is the names of policies where the quota was exceeded.
IANA is asked to register the following entries in the "HTTP Problem Types" registry at https://www.iana.org/assignments/http-problem-types.
574
+
575
+
### Registration of "quota-exceeded" Problem Type
576
+
577
+
Type URI: https://iana.org/assignments/http-problem-types#quota-exceeded
578
+
579
+
Title: Quota Exceeded
580
+
581
+
Recommended HTTP status code: 429
582
+
583
+
Reference: {{quota-exceeded}} of this document
584
+
585
+
### Registration of "temporary-reduced-capacity" Problem Type
586
+
587
+
Type URI: https://iana.org/assignments/http-problem-types#temporary-reduced-capacity
588
+
589
+
Title: Temporary Reduced Capacity
590
+
591
+
Recommended HTTP status code: 503
592
+
593
+
Reference: {{temporary-reduced-capacity}} of this document
594
+
595
+
### Registration of "abnormal-usage-detected" Problem Type
596
+
597
+
Type URI: https://iana.org/assignments/http-problem-types#abnormal-usage-detected
598
+
599
+
Title: Abnormal Usage Detected
600
+
601
+
Recommended HTTP status code: 429
602
+
603
+
Reference: {{abnormal-usage-detected}} of this document
604
+
605
+
518
606
## RateLimit quota unit registry {#ratelimit-quota-unit-registry}
519
607
520
608
This specification establishes the registry "Hypertext Transfer Protocol (HTTP) RateLimit Quota Units" registry to be located at https://www.iana.org/assignments/http-ratelimit-quota-units. Registration is done on the advice of a Designated Expert, appointed by the IESG or their delegate. All entries are Specification Required ([IANA], Section 4.6).
0 commit comments