Skip to content

Add error 429 QUOTA_EXCEEDED#297

Closed
jlurien wants to merge 1 commit intocamaraproject:mainfrom
jlurien:feat/add-error-429-QUOTA_EXCEEDED
Closed

Add error 429 QUOTA_EXCEEDED#297
jlurien wants to merge 1 commit intocamaraproject:mainfrom
jlurien:feat/add-error-429-QUOTA_EXCEEDED

Conversation

@jlurien
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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