like that ?
```php
return new JsonResponse(true, 204);
```
or 
```php
return new JsonResponse(null, 204);
```