diff --git a/backend/src/controllers/regionController.js b/backend/src/controllers/regionController.js index 680a434..1ae6a7a 100644 --- a/backend/src/controllers/regionController.js +++ b/backend/src/controllers/regionController.js @@ -185,7 +185,7 @@ async function getSubregions(regionId, hierarchyId, getAll) { } if (subregions.length === 0) { - return { data: [], message: 'Region has no subregions', status: 202 }; + return { data: [], message: 'Region has no subregions', status: 204 }; } return { data: subregions, status: 200 };