echo Action

Sends its text content as response body and terminates the request.


The intended use is error handling or debugging.


The mime attribute defines the response Content-Type. Default: text/plain

The status attribute defines the HTTP response status code. This is a shortcut for a set-status action.


<echo mime="text/json;charset=utf-8" status="400">
"error": {
"message": "Something went wrong",
"code": 4711

The action body contains static text. If you need dynamic processing, use a template action (and <break/>) instead.