DistributionCustomErrorResponse constructor
const
DistributionCustomErrorResponse({})
Creates a new DistributionCustomErrorResponse.
errorCachingMinTtl Minimum amount of time you want HTTP error codes to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated.
errorCode 4xx or 5xx HTTP status code that you want to customize.
responseCode HTTP status code that you want CloudFront to return with the custom error page to the viewer.
responsePagePath Path of the custom error page (for example, /custom_404.html).
Implementation
const DistributionCustomErrorResponse({
this.errorCachingMinTtl,
required this.errorCode,
this.responseCode,
this.responsePagePath,
});