Merge pull request #7 from bradbishop/errors

Set response type correctly for errors