diff --git a/backend/src/main/java/com/group1/cuisines/controllers/CuisineController.java b/backend/src/main/java/com/group1/cuisines/controllers/CuisineController.java index d902e924..eadf6d76 100644 --- a/backend/src/main/java/com/group1/cuisines/controllers/CuisineController.java +++ b/backend/src/main/java/com/group1/cuisines/controllers/CuisineController.java @@ -31,7 +31,7 @@ public ResponseEntity getCuisineById(@PathVariable String cuisineId, @Request CuisineDetailsDto cuisineDetails = cuisineService.getCuisineById(cuisineId, Boolean.TRUE.equals(includeDishes)); return ResponseEntity.ok(new SuccessResponse<>(200,cuisineDetails, "Cuisine details fetched successfully")); } catch (EntityNotFoundException e) { - return ResponseEntity.status(HttpStatus.NOT_FOUND).body(new ErrorResponse(204,"Cuisine not found")); + return ResponseEntity.ok(new ErrorResponse(204,"Cuisine not found")); } } }