Skip to content

DistributionCustomErrorResponse

Source code in docs_src/capo_lightsail/types/distribution_custom_error_response.py
class DistributionCustomErrorResponse(TypedDict, closed=True):
    error_code: NotRequired["capo_lightsail.types.integer.integer"]
    """<p>The HTTP error code from the origin that triggers the custom error response (for example, <code>403</code> or <code>404</code>).</p>"""
    response_code: NotRequired["capo_lightsail.types.string.string"]
    """<p>The HTTP status code that the distribution returns to the viewer for the custom error response.</p>"""
    response_page_path: NotRequired["capo_lightsail.types.string.string"]
    """<p>The path to the custom error page that the distribution returns to the viewer (for example, <code>/404.html</code>). The path must begin with a forward slash (<code>/</code>) and reference an object that is available from the origin.</p>"""
    error_caching_min_ttl: NotRequired["capo_lightsail.types.long.long"]
    """<p>The minimum time, in seconds, that the distribution caches the custom error response before requesting the object again from the origin. If you don't specify a value, the default is <code>10</code> seconds.</p>"""

error_caching_min_ttl instance-attribute

error_caching_min_ttl: NotRequired[long]

The minimum time, in seconds, that the distribution caches the custom error response before requesting the object again from the origin. If you don't specify a value, the default is 10 seconds.

error_code instance-attribute

error_code: NotRequired[integer]

The HTTP error code from the origin that triggers the custom error response (for example, 403 or 404).

response_code instance-attribute

response_code: NotRequired[string]

The HTTP status code that the distribution returns to the viewer for the custom error response.

response_page_path instance-attribute

response_page_path: NotRequired[string]

The path to the custom error page that the distribution returns to the viewer (for example, /404.html). The path must begin with a forward slash (/) and reference an object that is available from the origin.