I see: the problem is that the mock errors lack an `error` property that real errors have. The request library checks for that property before rejecting, so we'd just need to add those to the mock errors.