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

Better handling of non-2XX responses #39

Closed
wolfadex opened this issue Oct 4, 2023 · 2 comments
Closed

Better handling of non-2XX responses #39

wolfadex opened this issue Oct 4, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@wolfadex
Copy link
Owner

wolfadex commented Oct 4, 2023

Currently we only return the status code, but we should return the body as well.

@wolfadex wolfadex added the enhancement New feature or request label Oct 4, 2023
@wolfadex
Copy link
Owner Author

Maybe we let users choose the type of error handling they want?

  • Default to Http.Error
  • With a flag, say something like --detailed-errors you get Api.Error Endpoint_Error

@wolfadex
Copy link
Owner Author

Resolved by #52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant