# Error Page Configuration

The `error-page` plugin customizes gateway-generated 404, 500, 502, and 503 responses without modifying responses returned by upstream services.<!-- --> <!-- -->Configuration covers plugin metadata.

## Parameters[​](#parameters "Direct link to Parameters")

This plugin has no configurable parameters when configured on routes and services. All configuration options should be configured using [plugin metadata](#plugin-metadata).

See plugin [common configurations](https://docs.api7.ai/apisix/reference/plugin-common-configurations.md) for configuration options available to all plugins.

## Plugin Metadata[​](#plugin-metadata "Direct link to 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: `Product-specific HTML response`

    ***

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

  * 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: `Product-specific HTML response`

    ***

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

  * 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: `Product-specific HTML response`

    ***

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

  * 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: `Product-specific HTML response`

    ***

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

  * content\_type

    string

    default: `text/html`

    ***

    Response content type.
