Skip to main content

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


    default: false


    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.


API7.ai Logo

API Management for Modern Architectures with Edge, API Gateway, Kubernetes, and Service Mesh.

Product

API7 Cloud

SOC2 Type IIISO 27001HIPAAGDPRRed Herring

Copyright © APISEVEN PTE. LTD 2019 – 2024. Apache, Apache APISIX, APISIX, and associated open source project names are trademarks of the

Apache Software Foundation