noContent static method

dynamic noContent()

Creates a Response for a successful request with no content.

Returns:

  • A Response with a 204 status code and an empty body.

Implementation

static noContent() {
  // Create a Response object with a status code of 204 (OK)
  return Response('', 204);
}