adding error handling
Merge pull request #2 from iros/error-handling

adding error handling
put data on res, not req
0.2.0