Merge pull request #153 from rcchan/master

Update tests to use http error codes