Mercurial > libervia-web
comparison 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 |
comparison
equal
deleted
inserted
replaced
1295:0930b06f022f | 1296:b1215347b5c3 |
---|---|
112 HTTP_BAD_REQUEST = 400 | 112 HTTP_BAD_REQUEST = 400 |
113 HTTP_UNAUTHORIZED = 401 | 113 HTTP_UNAUTHORIZED = 401 |
114 HTTP_FORBIDDEN = 403 | 114 HTTP_FORBIDDEN = 403 |
115 HTTP_NOT_FOUND = 404 | 115 HTTP_NOT_FOUND = 404 |
116 HTTP_INTERNAL_ERROR = 500 | 116 HTTP_INTERNAL_ERROR = 500 |
117 HTTP_PROXY_ERROR = 502 | |
117 HTTP_SERVICE_UNAVAILABLE = 503 | 118 HTTP_SERVICE_UNAVAILABLE = 503 |
118 | 119 |
119 ## Cache ## | 120 ## Cache ## |
120 CACHE_PUBSUB = 0 | 121 CACHE_PUBSUB = 0 |
121 | 122 |