diff --git a/REST/app.py b/REST/app.py index 4e00f51..24f65eb 100644 --- a/REST/app.py +++ b/REST/app.py @@ -13,10 +13,13 @@ initialized = False lock = Lock() # Sperre (Lock) für die analyze_data-Methode def create_response(status_code, description): - return jsonify({ + response_data = { 'status': status_code, 'description': description - }) + } + response = make_response(jsonify(response_data)) + response.status_code = status_code + return response @app.route('/trng/randomNum/init', methods=['GET']) def initialize_generator():