ErrorHandler constructor

const ErrorHandler({
  1. Input<ErrorHandlerErrorCode>? errorCode,
  2. Input<String>? mimeType,
  3. Input<String>? staticFile,
})

Creates a new ErrorHandler. 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.

Implementation

const ErrorHandler({
  this.errorCode,
  this.mimeType,
  this.staticFile,
});