API7 Docs
GeneralError Page

Error Page Configuration

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

  • enableboolean · optional · default: false

    If true, enable the plugin.

  • error_404object · optional

    Error page to return when APISIX returns 404 status codes.

    • bodystring · optional · default: Product-specific HTML response

      Response body. The default identifies Apache APISIX or API7 Enterprise Edition, depending on the gateway distribution.

    • content_typestring · optional · default: text/html

      Response content type.

  • error_500object · optional

    Error page to return when APISIX returns 500 status codes.

    • bodystring · optional · default: Product-specific HTML response

      Response body. The default identifies Apache APISIX or API7 Enterprise Edition, depending on the gateway distribution.

    • content_typestring · optional · default: text/html

      Response content type.

  • error_502object · optional

    Error page to return when APISIX returns 502 status codes.

    • bodystring · optional · default: Product-specific HTML response

      Response body. The default identifies Apache APISIX or API7 Enterprise Edition, depending on the gateway distribution.

    • content_typestring · optional · default: text/html

      Response content type.

  • error_503object · optional

    Error page to return when APISIX returns 503 status codes.

    • bodystring · optional · default: Product-specific HTML response

      Response body. The default identifies Apache APISIX or API7 Enterprise Edition, depending on the gateway distribution.

    • content_typestring · optional · default: text/html

      Response content type.