mirror of
https://github.com/jwetzell/showbridge-docs.git
synced 2026-08-08 15:13:38 +00:00
23 lines
876 B
Plaintext
23 lines
876 B
Plaintext
---
|
|
title: Create HTTP Response
|
|
sidebar:
|
|
label: Create
|
|
order: 2
|
|
---
|
|
import SchemaInfo from '../../../../../components/SchemaInfo.astro';
|
|
|
|
This processor will create a new HTTP response with the specified status code and body template. The created response will be passed through to the next processor in the chain. If the response is subsequently sent to an HTTP server module using the [module.output](../module/output.md) processor, the status code and body template set by this processor will be used for the response sent to the client. This processor will return an error if there is an issue executing the body template.
|
|
|
|
<SchemaInfo type="processor" id="http.response.create"/>
|
|
|
|
### Example
|
|
|
|
This would create an HTTP response with a status code of `200` and a body of `OK`
|
|
|
|
```yaml
|
|
- type: http.response.create
|
|
params:
|
|
status: 200
|
|
bodyTemplate: "OK"
|
|
```
|