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 backend architecture. Best when used with Condition objects.

Data model

cache_conditionstringName of the cache condition controlling when this configuration applies.
contentstringThe content to deliver for the response object, can be empty.
content_typestringThe MIME type of the content, can be empty.
namestringName for the request settings.
request_conditionstringCondition which, if met, will select this configuration during a request. Optional.
responsestringThe HTTP response. [Default Ok]
statusstringThe HTTP status code. [Default 200]
created_atstringDate and time in ISO 8601 format. Read-only.
deleted_atstringDate and time in ISO 8601 format. Read-only.
service_idstringAlphanumeric string identifying the service. Read-only.
updated_atstringDate and time in ISO 8601 format. Read-only.
versionstringString identifying a service version. Read-only.


List Response objects


Create a Response object


Get a Response object


Update a Response object


Delete a Response Object


User contributed notes


Do you see an error in this page? Do have an interesting use case, example or edge case people should know about? Share your knowledge and help people who are reading this page! (Comments are moderated; for support, please contact