Merge pull request #1 from tatsumi33/fix-httpresponse-errorcheck

Add error check for HTTP response