Fastly · Schema

ResponseObject

A response object allows serving synthetic responses directly from the edge without contacting an origin server.

CDNEdge CloudEdge ComputeWebAssemblySecurityAIObservabilityAsyncAPIStreamingWebhooksLogging

Properties

Name Type Description
name string The name of the response object.
status integer The HTTP status code for the synthetic response.
response string The HTTP status text for the synthetic response.
content string The content body to return in the synthetic response.
content_type string The MIME type of the content body.
request_condition string The name of the condition that triggers the response object.
cache_condition string The name of the condition that determines caching.
View JSON Schema on GitHub

JSON Schema

fastly-responseobject-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ResponseObject",
  "title": "ResponseObject",
  "type": "object",
  "description": "A response object allows serving synthetic responses directly from the edge without contacting an origin server.",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the response object."
    },
    "status": {
      "type": "integer",
      "description": "The HTTP status code for the synthetic response.",
      "minimum": 100,
      "maximum": 599
    },
    "response": {
      "type": "string",
      "description": "The HTTP status text for the synthetic response."
    },
    "content": {
      "type": "string",
      "description": "The content body to return in the synthetic response."
    },
    "content_type": {
      "type": "string",
      "description": "The MIME type of the content body."
    },
    "request_condition": {
      "type": "string",
      "description": "The name of the condition that triggers the response object."
    },
    "cache_condition": {
      "type": "string",
      "description": "The name of the condition that determines caching."
    }
  }
}