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

Handle HTTP error responses #42

Merged
merged 1 commit into from Oct 1, 2023
Merged

Handle HTTP error responses #42

merged 1 commit into from Oct 1, 2023

Commits on Oct 1, 2023

  1. Handle HTTP error responses

    `WebRequest` used to throw `WebException` when an HTTP response had an
    error status. The library was changed to use `HttpClient` instead, which
    does not do that, but the code was not updated to handle error
    responses.
    
    Error handling has now been re-added, using a new `HttpError` exception.
    The XML doc comments were updated accordingly.
    
    In addition, new methods have been added: `FetchReleaseIfAvailable`
    and `FetchGroupReleaseIfAvailable` (plus async versions). These will
    return `null` instead of throwing an `HttpError` when a 404 response is
    received.
    
    Bumped version to 5.1.0-pre due to the new methods.
    
    Fixes #41.
    Zastai committed Oct 1, 2023
    Configuration menu
    Copy the full SHA
    5d6ca04 View commit details
    Browse the repository at this point in the history