function getStream(url, config) {
	return new Promise((resolve, reject) => {
		const req = get(url, config || {}, res => {
			const status = res.statusCode || 0;
			if (status >= 200 && status < 400) {
				return resolve(res);
			}
			const err = Object.assign(Error(`${res.statusMessage}: ${url}`), {
				code: status,
				status,
				res
			});
			reject(err);
		});
		req.on('error', reject);
	});
}
@param {string} url
@param {Parameters<get>[1]} [config]
@returns {Promise<import('http').IncomingMessage>}