Skip to content

Commit d6284ee

Browse files
committed
Document too-many-requests error code.
1 parent 5ba562d commit d6284ee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

development/node-api/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ An error may occur on different stages of request processing.
3838

3939
* If the request URL is unknown, `not-found` error is returned.
4040
* If the request Content-Type is unknown, `invalid-content-type` error is returned.
41+
* If there were too many requests done in a short period of time, `too-many-requests`
42+
error is returned. In addition, [`Retry-After`][6] and [`RateLimit-Policy`][7]
43+
headers are set.
4144
* If incorrect JSON is provided, `invalid-syntax` error is returned.
4245
* If the request is correct, but the operation is not supported by the node,
4346
`not-supported` error is returned.
@@ -98,3 +101,5 @@ the description of its purpose.
98101
[3]: authentication.html#carte
99102
[4]: authentication.html
100103
[5]: events.html
104+
[6]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After
105+
[7]: https://datatracker.ietf.org/doc/draft-ietf-httpapi-ratelimit-headers/

0 commit comments

Comments
 (0)