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.

Endpoints

List Response objects

GET/service/service_id/version/version/response_object

Get a Response object

GET/service/service_id/version/version/response_object/name

Create a Response object

POST/service/service_id/version/version/response_object

Update a Response object

PUT/service/service_id/version/version/response_object/old_name

Delete a Response Object

DELETE/service/service_id/version/version/response_object/name

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.