Parameters
This plugin has no configurable parameters when configured on routes and services. All configuration options should be configured using plugin metadata.
See plugin common configurations for configuration options available to all plugins.
Plugin Metadata
enable
boolean
If true, enable the plugin.
error_404
object
Error page to return when APISIX returns 404 status codes.
body
string
default:
<html> <head><title>404 Not Found</title></head> <body> <center><h1>404 Not Found</h1></center> <hr><center>API7 Enterprise Edition</center> </html>
Response body.
content-type
string
default:
text/html
Response content type.
error_500
object
Error page to return when APISIX returns 500 status codes.
body
string
default:
<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>API7 Enterprise Edition</center> </html>
Response body.
content-type
string
default:
text/html
Response content type.
error_502
object
Error page to return when APISIX returns 502 status codes.
body
string
default:
<html> <head><title>502 Bad Gateway</title></head> <body> <center><h1>502 Bad Gateway</h1></center> <hr><center>API7 Enterprise Edition</center> </html>
Response body.
content-type
string
default:
text/html
Response content type.
error_503
object
Error page to return when APISIX returns 503 status codes.
body
string
default:
<html> <head><title>503 Service Unavailable</title></head> <body> <center><h1>503 Service Unavailable</h1></center> <hr><center>API7 Enterprise Edition</center> </html>
Response body.
content-type
string
default:
text/html
Response content type.