# Echo Configuration

The `echo` plugin replaces or wraps upstream response bodies and adds response headers for testing and controlled gateway responses.<!-- --> <!-- -->Configuration covers plugin parameters.

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

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

Configure at least one of the following response-body parameters: `body`, `before_body`, or `after_body`.

* body

  string

  ***

  Response body that replaces the complete upstream response body.

* before\_body

  string

  ***

  Content prepended once to the upstream response body.

* after\_body

  string

  ***

  Content appended after the final upstream response-body chunk.

* headers

  object

  valid value:

  at least one response header with a nonempty name and a string or number value

  ***

  Response headers added or replaced by the plugin.
