This is shaky, as proxy returns 599 in many other scenarios, like a timeout etc..