Commit a30f51d9 authored by Roman Haefeli's avatar Roman Haefeli
Browse files

return 201 on successful proxy launch

parent f0eb5d0d
......@@ -121,7 +121,7 @@ def start_proxy():
'room': proxydef['room']
response = {'status': 'OK', 'msg': 'Proxy successfully started'}
return r(json.dumps(response))
return r(json.dumps(response), 201)
response = {'status': 'Error', 'msg': 'Proxy already running on port %s' % proxydef['port']}
return r(json.dumps(response), 422)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment