Skip to content

Improvement: Add Default:TooManyRequests error code #670

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

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

Copy link

stale bot commented Jun 27, 2025

This PR has been automatically marked as stale because it has not been touched in the last 14 days. If you'd like to keep it open, please leave a comment or add the 'long-lived' label, otherwise it'll be closed in 7 days.

@stale stale bot added the stale label Jun 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants