ErrorHandlerResponse class

Custom static error page to be served when an error occurs.

Constructors

ErrorHandlerResponse({required Input<String> errorCode, required Input<String> mimeType, required Input<String> staticFile})
Creates a new ErrorHandlerResponse. errorCode Error condition this handler applies to. mimeType MIME type of file. Defaults to text/html. staticFile Static file content to be served for this error.
const
ErrorHandlerResponse.fromMap(Map<String, dynamic> map)
factory

Properties

errorCode → Input<String>
Error condition this handler applies to.
final
hashCode → int
The hash code for this object.
no setterinherited
mimeType → Input<String>
MIME type of file. Defaults to text/html.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
staticFile → Input<String>
Static file content to be served for this error.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited