Construct Response

Construct a HTTP response, including a standard HTTP status code and a message you create, to be served from the ​Akamai​ edge server without sending the request to your origin.

How it works

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.
You can create a message of up to 2000 characters for the body of the response.
By default, the edge servers evict currently cached version of the object from cache, since it isn't being served.

🚧

Don't use the Construct Response behavior with Bot Manager when you set up alternate hostname to send bot traffic to an alternate page or site. Make sure the behavior is disabled in that case.

Features and options

FieldWhat it doesSub-options
StatusEnables or disables this behavior.
Response BodyThe HTML response you want the user to receive.

Variable Support: This option supports variable expression syntax. Typing {{ in the option field triggers variable auto complete. Learn more about variable support.
Response CodeThe response code you want the user to receive.
  • 200 OK
  • 404 Not Found
  • 401 Unauthorized
  • 403 Forbidden
  • 405 Method Not Allowed
  • 417 Expectation Failed
  • 500 Internal Server Error
  • 501 Not Implemented
  • 502 Bad Gateway
  • 503 Service Unavailable
  • 504 Gateway Timeout
Force Cache evictionForce eviction of the underlying object from cache.
Ignore for Purge requestsIgnore this construct response when purging.