Class: CloudFrontDistributionConfigCustomErrorResponse

Types~CloudFrontDistributionConfigCustomErrorResponse

new CloudFrontDistributionConfigCustomErrorResponse()

Properties:
Name Type Description
ErrorCachingMinTTL Number Required: No. The minimum amount of time, in seconds, that Amazon CloudFront caches the HTTP status code that you specified in the ErrorCode property. The default value is 300.
ErrorCode Number Required: Yes. An HTTP status code for which you want to specify a custom error page. You can specify 400, 403, 404, 405, 414, 500, 501, 502, 503, or 504.
ResponseCode Number Required: Conditional. The HTTP status code that CloudFront returns to viewer along with the custom error page. You can specify 200, 400, 403, 404, 405, 414, 500, 501, 502, 503, or 504.
ResponsePagePath String Required: Conditional. The path to the custom error page that CloudFront returns to a viewer when your origin returns the HTTP status code that you specified in the ErrorCode property. For example, you can specify /404-errors/403-forbidden.html.
Source: