400 error handling added
Merge pull request #4 from 2rba/badrequesterror

400 error handling added