|
|
|
|
|
by rix0r
3849 days ago
|
|
I hate that "Too Many Requests", or "Throttled", or what have you, is a 4xx status code. It renders simple middleware logic like "retry on a 5xx, don't retry on a 4xx" invalid. If you'd call it "Server Over Capacity" you could just as well argue for a 5xx code. |
|
Your simple middleware logic is going to have to examine the 400 error in more detail in order to adjust its request rate e.g. exponential back off.
It's not that the "server is over capacity", its that the specific client is making "too many requests".