Change api status code from 500 to 200 in order to display error info in page.

This commit is contained in:
gebitang
2019-08-28 10:38:00 +08:00
parent 16e64b51ff
commit c7cd8f4c63

View File

@@ -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
})