improved exceptions with addition of status code as suggested in #15
Merge pull request #17 from pulkitjalan/develop

improved exceptions with addition of status code as suggested in #15