retry on HTTP 50X Error when calling Chef REST API

I know the comment below should match, but is there something we could 'expect' to match exactly(5).times ?