From d8f19372f9540ee48b9ad0b38514e8a7e00fb2df Mon Sep 17 00:00:00 2001 From: Amelie Regl Date: Tue, 10 Dec 2024 17:04:10 +0100 Subject: [PATCH] changed response codes to more fitting values Signed-off-by: Amelie Regl --- apps/analyzer/metadata_analyzer/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/analyzer/metadata_analyzer/main.py b/apps/analyzer/metadata_analyzer/main.py index 8ed82bc..01d1c21 100644 --- a/apps/analyzer/metadata_analyzer/main.py +++ b/apps/analyzer/metadata_analyzer/main.py @@ -433,7 +433,7 @@ def runTimeSeriesTests(): ) return jsonify(result) except ValueError as val: - return "Value error occured: " + str(val), 401 + return "Value error occured: " + str(val), 400 @app.route("/getTaskIds", methods=["GET"]) @@ -525,7 +525,7 @@ def return_frequencies(): field = "variable" variable = json["variable"] except KeyError: - return "Missing field of type " + field + return "Missing field of type " + field, 400 return jsonify(Time_series_analyzer.get_frequencies(task_id, backup_type, variable))