treat bad res.statusCodes as errors