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

add raise_for_status parameter to HTTP wrapper methods #500

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Archana-GS
Copy link
Collaborator

Adding raise_for_status parameter to the HTTP wrapper methods to enhance flexibility in handling HTTP responses.

Key Changes:

  1. Added the raise_for_status parameter, which defaults to True.
  2. When raise_for_status=True, the method raises an HTTP Error for non-2xx status codes, preserving the current behavior.
  3. By adding this parameter, we can selectively handle failure cases, such as logging specific error codes or testing invalid requests during API testing.

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