handling http status codes and throwing exception when not 200 (OK)
Merge pull request #5 from scr34m/master

handling http status codes and throwing exception when not 200 (OK)