Skip to content

Respond with 429 when throttled#528

Merged
pkieltyka merged 1 commit intogo-chi:masterfrom
davidc604:use-429-when-throttled
Jul 8, 2020
Merged

Respond with 429 when throttled#528
pkieltyka merged 1 commit intogo-chi:masterfrom
davidc604:use-429-when-throttled

Conversation

@davidc604
Copy link
Contributor

@davidc604 davidc604 commented Jul 3, 2020

Responding with HTTP 429 Too Many Requests status code seems more inline with what actually happened instead of the service unavailable response status code, because technically, the service is still available, it's just the sender has send too many requests in a given amount of time. (Typically a 400s error is client fault, whereas a 500s error is server).

@pkieltyka
Copy link
Member

@VojtechVitek let us know what you think

Copy link
Contributor

@VojtechVitek VojtechVitek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with the above. LGTM.

Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants