fix(inference_endpoints): use GET `healthRoute` instead of GET / to check status (#3165)
* fix(inference_endpoints): use GET /health instead of GET / to check status
* misc(quality): format
* feat(inference_endpoints): use healthRoute from the API to retrieve the path where to query endpoint status
* feat(inference_endpoints): missing health_url in classdef
* feat(inference_endpoints): wrong variable name ... 🤦🏻♂️
* feat(inference_endpoints): need coffee at this stage.
* feat(inference_endpoints): fix remaining tests
* feat(inference_endpoints): address comments use health_route and compute _health_url
* feat(inference_endpoints): move _health_url computation when endpoint is running and we have an actual url
* Apply suggestions from code review
* add test
* Update src/huggingface_hub/_inference_endpoints.py
---------
Co-authored-by: Lucain <lucain@huggingface.co>
Co-authored-by: Lucain Pouget <lucainp@gmail.com>