sendInternalError method

Future<void> sendInternalError()

Implementation

Future<void> sendInternalError() async {
  res?.statusCode = HttpStatus.internalServerError;
  res?.write('Internal Error');
  await res?.close();
}