send404 function

void send404 (
  1. HttpRequest req
)

Implementation

void send404(HttpRequest req) {
  req.response.statusCode = HttpStatus.NOT_FOUND;
  req.response.write("Not Found");
  req.response.close();
}