Skip to content

Conversation

@vidhya09
Copy link

@vidhya09 vidhya09 commented Oct 7, 2025

The README.md lacked examples of how to handle API errors. This is a crucial aspect for any developer using the library in a real-world application.

This change adds a new "Error Handling" section that demonstrates how to:

  • Import the HttpResponseError exception.
  • Use a try/except block to catch API failures.
  • Inspect the exception object for details like status code, reason, and the API error message.

The README.md lacked examples of how to handle API errors. This is a crucial aspect for any developer using the library in a real-world application.

This change adds a new "Error Handling" section that demonstrates how to:
- Import the HttpResponseError exception.
- Use a try/except block to catch API failures.
- Inspect the exception object for details like status code, reason, and the API error message.
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