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

@ -73,7 +73,7 @@ class LongRunningAPI(MicroscopeViewPlugin):
# Attach the long-running method as a microscope task
try:
task = self.microscope.task.start(self.plugin.long_running, time_to_run)
return jsonify(task.state), 202
return jsonify(task.state), 201
except TaskDeniedException:
return abort(409)
@ -94,7 +94,7 @@ class SomeExceptionAPI(MicroscopeViewPlugin):
# Attach the long-running method as a microscope task
try:
task = self.microscope.task.start(self.plugin.some_exception)
return jsonify(task.state), 202
return jsonify(task.state), 201
except TaskDeniedException:
return abort(409)