kong 自定义默认error html
Last updated
Was this helpful?
Last updated
Was this helpful?
这种方式适用单个路由的单个http code替换错误页面
注意:同一个路由 同一个插件只能添加一次,下面的示例只能替换404 error 的页面
方式一的方法只能替换其中一个http code 的错误html, 不能解决其它code 问题,方式二挂载扩展configmap + 配置 error_template_html 的方式替换通用的 error template
**这种方式适用替换默认的通用error template html **
https://support.konghq.com/support/s/article/How-to-create-a-catch-all-route-for-unmatched-paths?_ga=2.1458740.444088506.1690183560-1640846521.1683802307
https://docs.konghq.com/gateway/latest/reference/configuration/
https://docs.konghq.com/gateway/3.3.x/production/kong-conf/
https://github.com/Kong/kong/blob/master/kong/tools/utils.lua