Replaced 202s with more suitable 201s

This commit is contained in:
jtc42 2019-11-15 16:53:50 +00:00
parent 76af0891e9
commit dac50f1f3a
7 changed files with 10 additions and 10 deletions

View file

@ -29,7 +29,7 @@ class AutofocusAPI(MicroscopeViewPlugin):
task = taskify(self.plugin.autofocus)(dz)
# return a handle on the autofocus task
return jsonify(task.state), 202
return jsonify(task.state), 201
else:
abort(503, "No stage connected. Unable to autofocus.")
@ -50,7 +50,7 @@ class FastAutofocusAPI(MicroscopeViewPlugin):
task = taskify(self.plugin.fast_autofocus)(dz, backlash=backlash)
# return a handle on the autofocus task
return jsonify(task.state), 202
return jsonify(task.state), 201
else:
abort(503, "No stage connected. Unable to autofocus.")

View file

@ -18,7 +18,7 @@ class RecalibrateAPIView(MicroscopeViewPlugin):
task = taskify(self.plugin.recalibrate)()
# Return a handle on the autofocus task
return jsonify(task.state), 202
return jsonify(task.state), 201
class Plugin(MicroscopePlugin):

View file

@ -60,4 +60,4 @@ class TileScanAPI(MicroscopeViewPlugin):
)
# return a handle on the scan task
return jsonify(task.state), 202
return jsonify(task.state), 201