Mercurial > libervia-web
diff libervia/server/pages.py @ 1285:37a582b0fe53
pages: 404 is now returne if a remote server is not found
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 19 Jun 2020 16:47:51 +0200 |
parents | 65c43eec15ad |
children | 63328c793a9e |
line wrap: on
line diff
--- a/libervia/server/pages.py Fri Jun 19 16:47:51 2020 +0200 +++ b/libervia/server/pages.py Fri Jun 19 16:47:51 2020 +0200 @@ -1752,6 +1752,8 @@ if e.condition == 'not-allowed': log.warning("not allowed exception catched") self.pageError(request, C.HTTP_FORBIDDEN) + elif e.condition == 'remote-server-not-found': + self.pageError(request, C.HTTP_NOT_FOUND) else: log.error(_("Uncatched bridge exception for HTTP request on {url}: {e}") .format(url=request.URLPath(), e=e))