diff --git a/myems-api/core/meter.py b/myems-api/core/meter.py index 17f4fbd2..9243183e 100644 --- a/myems-api/core/meter.py +++ b/myems-api/core/meter.py @@ -942,7 +942,7 @@ class MeterPointCollection: if rows_points is not None and len(rows_points) > 0: cursor.close() cnx.disconnect() - raise falcon.HTTPError(falcon.HTTP_404, title='API.BAD_REQUEST', + raise falcon.HTTPError(falcon.HTTP_400, title='API.ERROR', description='API.METER_CANNOT_HAVE_MORE_THAN_ONE_ENERGY_VALUE_POINTS') query = (" SELECT id "