CustomErrorResponses class

A complex type that controls:

  • Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.
  • How long CloudFront caches HTTP status codes in the 4xx and 5xx range.
For more information about custom error pages, see Customizing Error Responses in the Amazon CloudFront Developer Guide.

Constructors

CustomErrorResponses({@_s.required int quantity, List<CustomErrorResponse> items})
CustomErrorResponses.fromXml(XmlElement elem)
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
items List<CustomErrorResponse>
A complex type that contains a CustomErrorResponse element for each HTTP status code for which you want to specify a custom error page and/or a caching duration.
final
quantity int
The number of HTTP status codes for which you want to specify a custom error page and/or a caching duration. If Quantity is 0, you can omit Items.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited
toXml(String elemName) XmlElement

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited