sendNotFound method

FutureOr<Response> sendNotFound(
  1. Request req,
  2. String message
)

Implementation

FutureOr<Response> sendNotFound(Request req, String message) async {
  var correlationId = getCorrelationId(req);
  var error = NotFoundException(correlationId, 'NOT_FOUND', message);
  return await sendError(req, error);
}