From c7cd8f4c63fc200881c47d9de4b6f10b0ba76962 Mon Sep 17 00:00:00 2001 From: gebitang Date: Wed, 28 Aug 2019 10:38:00 +0800 Subject: [PATCH] Change api status code from 500 to 200 in order to display error info in page. --- lib/units/storage/plugins/apk/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/units/storage/plugins/apk/index.js b/lib/units/storage/plugins/apk/index.js index 3d1f93ba..9ed22bca 100644 --- a/lib/units/storage/plugins/apk/index.js +++ b/lib/units/storage/plugins/apk/index.js @@ -37,7 +37,7 @@ module.exports = function(options) { }) .catch(function(err) { log.error('Unable to read manifest of "%s"', req.params.id, err.stack) - res.status(500) + res.status(200) .json({ success: false })