Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add error 429 QUOTA_EXCEEDED #297

Closed

Conversation

jlurien
Copy link
Collaborator

@jlurien jlurien commented May 29, 2024

What type of PR is this?

  • enhancement/feature

What this PR does / why we need it:

Adds a new error scenario to be used when a server logic rejects a request to create a session due to a business quota being exceeded.

Added a subcase for 429 with a new specific code QUOTA_EXCEEDED

Which issue(s) this PR fixes:

Fixes #257

Special notes for reviewers:

403 could have been used instead, as a general forbidden due to business rules, but 429 is more related to cases where rate or quota limits are exceeded. But this could be open to debate as guidelines are not explicit about this case. It is related with the discussion for Commonalities PR camaraproject/Commonalities#213

Changelog input

Added explicit error response status 429 to createSessions

@maxl2287
Copy link
Collaborator

@jlurien I have a parallel PR (without seeing here yours before) #306
This includes also HTTP-429.
Maybe you can take a look

@jlurien
Copy link
Collaborator Author

jlurien commented Jul 19, 2024

This PR is no longer necessary as it was incorporated into #306

@jlurien jlurien closed this Jul 19, 2024
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.

Error behaviour when session cannot be created due to "time cap" limitation
2 participants