shouldn't that be `if (res.statusCode !== 200) {`?