sendNotFoundHtml method

Future<void> sendNotFoundHtml({
  1. String? text,
})

Implementation

Future<void> sendNotFoundHtml({String? text}) async => send(
  text ?? '<h1>404 Not Found</h1>',
  contentType: ContentType.html,
  statusCode: HttpStatus.notFound,
);