fixed errors
Merge pull request #10 from Edools/improve-failure-responses

fixed errors