sendStatus method

Future sendStatus(
  1. int statusCode
)

Set the response status code and send a message containing the associated status string.

Implementation

Future sendStatus(int statusCode) async {
  status(statusCode);
  await send('$statusCode ${getStatusMessage(statusCode)}');
}