check the HTTP response code
Merge pull request #7 from aki77/support_retry

check the HTTP response code