新增错误页面

This commit is contained in:
Jian Shen
2022-07-28 15:18:32 +08:00
parent 73381be92c
commit 31165e7402
3 changed files with 16 additions and 0 deletions
@@ -0,0 +1,4 @@
{
"code": 400,
"msg": "Interface Not Found"
}
@@ -0,0 +1,4 @@
{
"code": 500,
"msg": "Server Inner Error"
}
@@ -90,4 +90,12 @@
<servlet-name>SafeCode</servlet-name>
<url-pattern>/randomCode</url-pattern>
</servlet-mapping>
<error-page>
<error-code>500</error-code>
<location>/500.json</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/404.json</location>
</error-page>
</web-app>