segmentio / superagent-retry

Retry superagent requests for common hangups
85 stars 35 forks source link

502, 503, and 504 #1

Closed justincy closed 10 years ago

justincy commented 10 years ago

You're checking for a status code of 503 for bad gateway, but 502 is bad gateway. 503 is service unavailable and 504 is gateway timeout. You should probably check for all of those. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

calvinfo commented 10 years ago

fixed by #2