ResponseEntity.notFound constructor

ResponseEntity.notFound({
  1. Object? body,
  2. Map<String, Object>? headers,
})

Implementation

ResponseEntity.notFound({
  Object? body,
  Map<String, /* String | List<String> */ Object>? headers,
}) : this(
        HttpStatus.notFound.value,
        body: body ?? 'Not found',
        headers: headers,
      );