sendNotFound method

Future<void> sendNotFound()

Implementation

Future<void> sendNotFound() async {
  res?.statusCode = HttpStatus.notFound;
  res?.headers.contentType = ContentType.html;
  res?.write('<br><center><h2>Not Found</h2></center>');
  await res?.close();
}