diff libervia/server/constants.py @ 1296:b1215347b5c3

pages (bridge): better handling of errors: when a BridgeError is catched, set a PROXY_ERROR code, and build a JSON object from the exception.
author Goffi <goffi@goffi.org>
date Fri, 19 Jun 2020 16:47:51 +0200
parents 334d044f2713
children e3e303a30a74
line wrap: on
line diff
--- a/libervia/server/constants.py	Fri Jun 19 16:47:51 2020 +0200
+++ b/libervia/server/constants.py	Fri Jun 19 16:47:51 2020 +0200
@@ -114,6 +114,7 @@
     HTTP_FORBIDDEN = 403
     HTTP_NOT_FOUND = 404
     HTTP_INTERNAL_ERROR = 500
+    HTTP_PROXY_ERROR = 502
     HTTP_SERVICE_UNAVAILABLE = 503
 
     ## Cache ##