Skip to content

Upon receiving unexpected status code, attempt to retrieve the body #185

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

Merged
merged 3 commits into from
Mar 10, 2022

Conversation

marcinwyszynski
Copy link
Contributor

When using this library, we found the inability to read the body limiting when the API returns an unexpected status code. In particular, when the API returns a 400 Bad Request, the body should include some pointers on what went wrong, so it's useful to keep it.

This change is backward compatible with the existing API.

Copy link
Owner

@ktrysmt ktrysmt left a comment

Choose a reason for hiding this comment

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

LGTM.

@ktrysmt ktrysmt merged commit 0ae8b18 into ktrysmt:master Mar 10, 2022
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.

2 participants