treat bad res.statusCodes as errors
Merge pull request #2 from dstokes/master

treat bad res.statusCodes as errors