Couper Documentation

edge

Response

The response block creates and sends a client response.

Block nameContextLabel
responseEndpoint Blockno label

The response body can be omitted or must be one of body or json_body.

Attributes

NameTypeDefaultDescription
body
string
-
Response body which creates implicit default Content-Type: text/plain header field.
headers
object
-
Same as set_response_headers in Modifiers - Response Header.
json_body
null, bool, number, string, object, tuple
-
JSON response body which creates implicit default Content-Type: application/json header field.
status
number
200
The HTTP status code to return.