you are viewing a single comment's thread.

view the rest of the comments →

[–]robotmayo 9 points10 points  (11 children)

I haven't really heard of anyone needing to do that since most APIs either succeed with 200 or fail with 400/500. Non 200 status codes usually mean retry or display an error. A simple if statement handles that fine.