Response object

Allows you to create synthetic responses that exist entirely on the varnish machine. Useful for creating error or maintenance pages that exists outside the scope of your datacenter. Best when used with Condition objects.

Data model

cache_conditionStringName of the condition checked after we have retrieved an object. If the condition passes then deliver this Request Object instead.
contentStringThe content to deliver for the response object, can be empty.
content_typeStringThe MIME type of the content, can be empty.
nameStringName that identifies the Response Object.
statusStringThe HTTP Status Code, defaults to 200.
responseStringThe HTTP Response, defaults to "Ok".
request_conditionStringName of the condition to be checked during the request phase. If the condition passes then this object will be delivered.
service_idStringThe alphanumeric string identifying a service.
versionIntegerThe current version of a service.


List Response objects


Get a Response object


Create a Response object


Update a Response object


Delete a Response Object


User contributed notes

We welcome comments that add use cases, ideas, tips, and caveats. All comments will be moderated before publication. To post support questions, visit our support center and we'll find you the help you need.