Skip to content

feat: raise exception on non-2xx responses#659

Open
llimllib wants to merge 1 commit intoswar:masterfrom
llimllib:check-status-code
Open

feat: raise exception on non-2xx responses#659
llimllib wants to merge 1 commit intoswar:masterfrom
llimllib:check-status-code

Conversation

@llimllib
Copy link
Copy Markdown
Contributor

@llimllib llimllib commented Mar 27, 2026

It can be difficult to diagnose issues happening inside the library when it doesn't throw exceptions on exceptional responses. Use the raise_for_status method (docs) of requests to throw on 4xx and 5xx responses

Also add a test for this behavior

It can be difficult to diagnose issues happening inside the library
when it doesn't throw exceptions on exceptional responses. Use the
raise_for_status method of requests to throw on non-2xx responses
@llimllib llimllib requested a review from swar as a code owner March 27, 2026 14:37
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.

1 participant