CloudFrontCustomErrorResponseSchema
Index
Properties
optionalerrorCachingMinTtl
How long CloudFront caches this error before asking the origin again, in seconds.
errorCode
The status code the origin answered with.
responseCode
The status code the viewer sees.
responsePagePath
The object served in place of the error, e.g. /index.html.
What the viewer gets when the origin answers with a status code CloudFront was told to handle.
The same field set expresses opposite intents. A single-page app maps
403and404to a200carrying/index.htmlwith a short TTL, so the client-side router can take over; a content site maps them to a real404carrying an error page.Resources/CloudFrontDistribution