construct_​response

Version: v2026-07-21Includes use: Yes

Behavior name: Construct Response

This behavior constructs an HTTP response, complete with HTTP status code and body, to serve from the edge independently of your origin. For example, you might want to send a customized response if the URL doesn't point to an object on the origin server, or if the end user is not authorized to view the requested content. You can use it with all request methods you allow for your property, including POST.

Request method behaviors:

allow_options
allow_patch
* allow_post
* allow_put
* allow_delete

Important: This behavior is not compatible with Bot Manager. For more information on routing bot traffic, see Set up alternate hostnames.

data "akamai_property_rules_builder" "construct_response" {
  rules_v2026_07_21 {
    name     = "Construct Response"
    comments = "Constructs an HTTP response."
    behavior {
      construct_response {
        ignore_purge = false
        enabled = true
        body = ""
        response_code = 200
        force_eviction = false
      }
    }
  }
}
"behaviors": [
  {
    "name": "constructResponse",
    "options": {
        "ignorePurge": false,
        "enabled": true,
        "body": "",
        "responseCode": 200,
        "forceEviction": false
    }
  }
]

Options

OptionDescription
enabled

Did this page help you?