Fixed checking of successful http status codes
Merge pull request #4 from Label305/feature_httpcodes

Fixed checking of successful http status codes