diff --git a/lib/Controller/ClustersController.php b/lib/Controller/ClustersController.php index 3f128665..f4bf246b 100644 --- a/lib/Controller/ClustersController.php +++ b/lib/Controller/ClustersController.php @@ -68,7 +68,9 @@ class ClustersController extends GenericApiController // If no photos found then return 404 if (0 === \count($photos)) { - return new JSONResponse([], Http::STATUS_NOT_FOUND); + return new JSONResponse([ + 'message' => 'No photos found in this cluster', + ], Http::STATUS_NOT_FOUND); } // Put the photos in the correct order