This code will fail with a ValueError in case we got a Status.DOWN which was not raised by a response.code > 400 (e.g. a socket timeout: https://github.com/dcrosta/dd-agent/blob/c111602b02ceae75f1447dc2986489e07e58818d/checks.d/http_check.py#L32) as it won't return a triplet