mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Use HTTP error 409 instead of 500 for VMError.
This commit is contained in:
1 parent
d65617657c
commit
610dee957d
2 files changed
+4
-4
No files matched your search
@@ -115,8 +115,8 @@ class Route(object):
|
||||
except VMError as e:
|
||||
log.error("VM error detected: {type}".format(type=type(e)), exc_info=1)
|
||||
response = Response(route=route)
|
||||
response.set_status(500)
|
||||
response.json({"message": str(e), "status": 500})
|
||||
response.set_status(409)
|
||||
response.json({"message": str(e), "status": 409})
|
||||
except Exception as e:
|
||||
log.error("Uncaught exception detected: {type}".format(type=type(e)), exc_info=1)
|
||||
response = Response(route=route)
|
||||
|
||||
Reference in new issue
Block a user