Fix #99 (Consider any 5xx code as down state)

In hindsight, perhaps only 502 should be considered a down state, as 500 might be temporary (i.e. bad input) but 502 really means "the thing I want to talk to is down".