Better error handling now that WPR is returning proper response codes.
Merge pull request #8 from humanmade/error-handling

Better error handling