getters for http code and error response
Merge pull request #6 from rouzwawi/master

getters for http code and error response