Fix custom handling of refined HTTPError (#924)
* Fix backwards compatibility
* Make myself feel better
* Codecov let me do my work
* Test some cleanup
* Quality
* Update codecov.yml
* Apply suggestions from code review
Co-authored-by: Simon Brandeis <33657802+SBrandeis@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Julien Chaumond <julien@huggingface.co>
* Cleanup/refactor
* Clean
* Edge
* Style
* Revert changes
* Update src/huggingface_hub/utils/_errors.py
Co-authored-by: Lysandre Debut <lysandre.debut@reseau.eseo.fr>
Co-authored-by: Simon Brandeis <33657802+SBrandeis@users.noreply.github.com>
Co-authored-by: Julien Chaumond <julien@huggingface.co>
Co-authored-by: Lysandre Debut <lysandre.debut@reseau.eseo.fr>