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

Use API-supplied Error Explanations #5

Open
jonthegeek opened this issue Apr 18, 2023 · 0 comments
Open

Use API-supplied Error Explanations #5

jonthegeek opened this issue Apr 18, 2023 · 0 comments

Comments

@jonthegeek
Copy link
Contributor

(implement via api2r)

In .prepare_request (or possibly an interim function that also does the perform step?), implement httr2::req_error() using the definitions supplied in the API spec.

This probably depends on the endpoint, so we'll want a function or series of functions to deal with this. Or possibly a single function with a lookup, but I like the idea of auto-generating functions so we can edit them to make more sense if the API spec is unclear.

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

No branches or pull requests

1 participant