参数
此插件在路由和服务上配置时没有可配置的参数。所有配置选项都应使用 插件元数据 进行配置。
请参阅 插件通用配置 了解所有插件可用的配置选项。
插件元数据
enable
boolean
default:
false如果为 true,启用插件。
error_404
object
当 APISIX 返回 404 状态码时返回的错误页面。
body
string
default:
<html> <head><title>404 Not Found</title></head> <body> <center><h1>404 Not Found</h1></center> <hr><center>API7 企业版</center> </html>响应体。
content-type
string
default:
text/html响应内容类型。
error_500
object
当 APISIX 返回 500 状态码时返回的错误页面。
body
string
default:
<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>API7 企业版</center> </html>响应体。
content-type
string
default:
text/html响应内容类 型。
error_502
object
当 APISIX 返回 502 状态码时返回的错误页面。
body
string
default:
<html> <head><title>502 Bad Gateway</title></head> <body> <center><h1>502 Bad Gateway</h1></center> <hr><center>API7 企业版</center> </html>响应体。
content-type
string
default:
text/html响应内容类型。
error_503
object
当 APISIX 返回 503 状态码时返回的错误页面。
body
string
default:
<html> <head><title>503 Service Unavailable</title></head> <body> <center><h1>503 Service Unavailable</h1></center> <hr><center>API7 企业版</center> </html>响应体。
content-type
string
default:
text/html响应内容类型。