diff --git a/lib/index.js b/lib/index.js
index <HASH>..<HASH> 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -16,7 +16,7 @@ function download(uri, file) {
 	return new Promise((res, rej) => {
 		https.get(uri, r => {
 			const code = r.statusCode;
-			if (code >= 400) return rej();
+			if (code >= 400) return rej({ code, message:r.statusMessage });
 			if (code > 300 && code < 400) return download(r.headers.location, file).then(res);
 			const write = writer(file).on('finish', _ => res(file));
 			r.pipe(write);
add missing `reject` reason during `download`