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

Throw exception on html error response #61

Conversation

JorgeLeites
Copy link
Contributor

@JorgeLeites JorgeLeites commented Jun 3, 2024

Even if the HTTP code is not an error code, the API may sometimes fail, and it returns an HTML body.
Check the body for an error message, and throw a "500" exception.

BTW, I had to fork the repo because I don't have permission to push.

Close T-10807

@taylorbrooks taylorbrooks merged commit 8c458a4 into taylorbrooks:master Jun 4, 2024
1 check passed
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