GuideReference
TrainingSupportCommunity
Reference

construct_​response

  • Property Manager name: Construct Response
  • Behavior version: The v2023-01-05 rule format supports the construct_​response behavior v1.3.
  • Rule format status: GA, stable
  • Access: Read/Write
  • Allowed in includes: Yes

This behavior constructs an HTTP response, complete with HTTP status code and body, to serve from the edge independently of your origin. It supports all request methods except for POST.

OptionTypeDescriptionRequires
enabledboolean

Serves the custom response.

{"displayType":"boolean","tag":"input","type":"checkbox"}
bodystring (allows variables)

HTML response of up to 2000 characters to send to the end-user client.

{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"enabled","op":"eq","value":true}}
response_​codeenum

The HTTP response code to send to the end-user client.

{"displayType":"enum","options":["200","404","401","403","405","417","500","501","502","503","504"],"tag":"select"}
{"if":{"attribute":"enabled","op":"eq","value":true}}
Supported values:
200
401
403
404
405
417
500
501
502
503
504
force_​evictionboolean

Removes the underlying object from the cache, since it is not being served.

{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"attribute":"enabled","op":"eq","value":true}}
ignore_​purgeboolean

Whether to ignore the custom response when purging.

{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"attribute":"enabled","op":"eq","value":true}}