errorPageHandler property

void errorPageHandler= (void callback(HttpRequest request))

Set the callback to override the error page handler. When callback is invoked, the statusCode property of the response is set.

Implementation

set errorPageHandler(void callback(HttpRequest request)) {
  _errorCallback = callback;
}