From 62fc0bb4eb9424b46f7320ae0dc364ec220da832 Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 15 Aug 2018 20:05:08 +0800 Subject: [PATCH] update --- libs/route-utils/res-message/index.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/libs/route-utils/res-message/index.js b/libs/route-utils/res-message/index.js index 922efa7..bdd5ca6 100644 --- a/libs/route-utils/res-message/index.js +++ b/libs/route-utils/res-message/index.js @@ -13,6 +13,22 @@ module.exports = { message: 'input data format error' } }, + NotLogin: { + status: 401, + obj: { + status: 401, + message: 'login first' + } + }, + NotFound: { + status: 404, + obj: { + status: { + status: 404, + message: 'not found' + } + } + }, InternalError: { status: 500, obj: {