HTTP Response
This processor will create a new HTTP response with the specified status code and body template.
The created response will be used to response to an incoming HTTP request if there is one present.
If there is no HTTP request in the current route context this step will error.
This means that usually the input to the route should be a http.server module
- type:
http.response - params:
- bodyTemplate: template for the response body
- status: status code to set on the response
Example
Section titled “Example”This would create an HTTP response with a status code of 200 and a body of OK
- id: create-response type: http.response params: status: 200 bodyTemplate: "OK"