diff --git a/thermostat.py b/thermostat.py index ddfbb7c..877b2d2 100755 --- a/thermostat.py +++ b/thermostat.py @@ -212,7 +212,7 @@ class Set_mode_thermostat(Resource): except Exception as e: logging.error(e) return "K0", 400 - return "OK", 201 + return "OK", 200 @ns_thermostat.route('/status') class Status_thermostat(Resource): @@ -246,7 +246,7 @@ class Set_verbosity_thermostat(Resource): logging.getLogger().setLevel(logging.WARNING) else: return "Bad request", 400 - return "OK", 201 + return "OK", 200 except Exception as e: logging.error(e) return "K0", 400