Change "You have looked up this player recently" to a more appropriate status code #566
Clemintina
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Are you able to reproduce this? I just requested the same player 10 times in a row without issue. Are you sure that you didn't just hit your rate limit? If not, I agree that For fun, |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
I've noticed the /player endpoint responds with 429 ( too many requests ) when you request the same player twice. This status code is normally reserved for api keys ( rate-limited ) and is stated as such in the Mozilla docs.
My proposal is to change the code from 429 to 400 which is more suited to the response. Since requesting a player twice using name is considered a bad request not being rate-limited.
Beta Was this translation helpful? Give feedback.
All reactions