Response
The response block creates and sends a client response.
| Block name | Context | Label |
|---|---|---|
response | Endpoint Block | no label |
The response body can be omitted or must be one of body or json_body.
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
body | string | - | Response body which creates implicit default |
headers | object | - | Same as |
json_body | null, bool, number, string, object, tuple | - | JSON response body which creates implicit default |
status | number | 200 | The HTTP status code to return. |