Added extra conditions to retry logic
provide a way to retrieve response body programatically
added 500,504 error codes to retry logic
Merge pull request #1 from markmcd/fixretry

:repeat: Added extra conditions to retry logic