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

Improvement: Add Default:TooManyRequests error code #670

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

ss25sand
Copy link

Summary

Add functionality to wrap golang errors with 429 error code
==COMMIT_MSG==
Add Default:TooManyRequests error code
==COMMIT_MSG==

Possible downsides?

None

@ss25sand ss25sand requested a review from AdamDeHovitz August 13, 2024 23:21
@@ -142,6 +148,8 @@ func (ec *ErrorCode) UnmarshalText(data []byte) error {
*ec = Conflict
case "REQUEST_ENTITY_TOO_LARGE":
*ec = RequestEntityTooLarge
case "TOO_MANY_REQUESTS":
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd like to get this added to the spec before adding to this library: https://github.com/palantir/conjure/blob/master/docs/spec/conjure_definitions.md#errorcode

Copy link
Contributor

@bmoylan bmoylan left a comment

Choose a reason for hiding this comment

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

// temp -1 until we agree on how these get specified across toolchains

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.

4 participants