you can just use "status >= 500" that will yield true or false by itself :) 

but the more I think of this, the less I think we should retry the 50x errors at each online event. What do you think ?

Also, I'm not sure we should do that on 3G, maybe we should retry only on a WiFi connection. But maybe we can file another bug for that, so that we can ask to UX.