AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Namespace: Amazon.CloudFront.Model
Assembly: AWSSDK.dll
Version: (assembly version)
public class CustomErrorResponse : Object
The CustomErrorResponse type exposes the following members
Name | Description | |
---|---|---|
CustomErrorResponse() |
Name | Type | Description | |
---|---|---|---|
ErrorCachingMinTTL | System.Int64 | Gets and sets the property ErrorCachingMinTTL. The 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. You can specify a value from 0 to 31,536,000. | |
ErrorCode | System.Int32 | Gets and sets the property ErrorCode. The 4xx or 5xx HTTP status code that you want to customize. For a list of HTTP status codes that you can customize, see CloudFront documentation. | |
ResponseCode | System.String | Gets and sets the property ResponseCode. The HTTP status code that you want CloudFront to return with the custom error page to the viewer. For a list of HTTP status codes that you can replace, see CloudFront Documentation. | |
ResponsePagePath | System.String | Gets and sets the property ResponsePagePath. The path of the custom error page (for example, /custom_404.html). The path is relative to the distribution and must begin with a slash (/). If the path includes any non-ASCII characters or unsafe characters as defined in RFC 1783 (http://www.ietf.org/rfc/rfc1738.txt), URL encode those characters. Do not URL encode any other characters in the path, or CloudFront will not return the custom error page to the viewer. |
.NET Framework:
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8