onRequestFallback method

void onRequestFallback(
  1. HttpRequest request
)

Implementation

void onRequestFallback(HttpRequest request) {
  request.response.statusCode = 404;
  request.response.write('Unknown request.');
}