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 +