From 31165e740225ca2546064a0f153809f7f0aa6dc9 Mon Sep 17 00:00:00 2001 From: Jian Shen Date: Thu, 28 Jul 2022 15:18:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=94=99=E8=AF=AF=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- projects/fangjia-open/src/main/webapp/404.json | 4 ++++ projects/fangjia-open/src/main/webapp/500.json | 4 ++++ projects/fangjia-open/src/main/webapp/WEB-INF/web.xml | 8 ++++++++ 3 files changed, 16 insertions(+) create mode 100644 projects/fangjia-open/src/main/webapp/404.json create mode 100644 projects/fangjia-open/src/main/webapp/500.json diff --git a/projects/fangjia-open/src/main/webapp/404.json b/projects/fangjia-open/src/main/webapp/404.json new file mode 100644 index 000000000..79ec33f0d --- /dev/null +++ b/projects/fangjia-open/src/main/webapp/404.json @@ -0,0 +1,4 @@ +{ + "code": 400, + "msg": "Interface Not Found" +} \ No newline at end of file diff --git a/projects/fangjia-open/src/main/webapp/500.json b/projects/fangjia-open/src/main/webapp/500.json new file mode 100644 index 000000000..e17a904c0 --- /dev/null +++ b/projects/fangjia-open/src/main/webapp/500.json @@ -0,0 +1,4 @@ +{ + "code": 500, + "msg": "Server Inner Error" +} \ No newline at end of file diff --git a/projects/fangjia-open/src/main/webapp/WEB-INF/web.xml b/projects/fangjia-open/src/main/webapp/WEB-INF/web.xml index 47a7251fb..0fd12bdf7 100644 --- a/projects/fangjia-open/src/main/webapp/WEB-INF/web.xml +++ b/projects/fangjia-open/src/main/webapp/WEB-INF/web.xml @@ -90,4 +90,12 @@ SafeCode /randomCode + + 500 + /500.json + + + 404 + /404.json +