Rate limiting: JSON-RPC info, log message

This commit is contained in:
mDuo13
2020-02-25 09:51:40 -08:00
parent f05e24e356
commit 0a763faad7
2 changed files with 19 additions and 3 deletions

View File

@@ -29,10 +29,12 @@ If the connection is closed because of rate limiting, the close code is `1008` a
## JSON-RPC Rate Limited Error
For a JSON-RPC API request, the server rejects a request with a ***TODO*** error when the client is over the rate limit. For example:
For a JSON-RPC API request, the server responds with the HTTP status code **503 Service Unavailable** when the client is over the rate limit. This response has a text (not JSON) body stating that the server is overloaded:
```json
TODO
```text
503 Service Unavailable
Server is overloaded
```
## Rate Per Request