changeset 938:9be057e23ce6

pages (g): use new constants
author Goffi <goffi@goffi.org>
date Thu, 27 Apr 2017 01:15:24 +0200 (2017-04-26)
parents 00236973e138
children 1375b96f4309
files src/pages/g/page_meta.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/pages/g/page_meta.py	Thu Apr 27 01:13:50 2017 +0200
+++ b/src/pages/g/page_meta.py	Thu Apr 27 01:15:24 2017 +0200
@@ -48,7 +48,7 @@
         try:
             data = yield self.host.bridge.invitationGet(invitation_id)
         except Exception:
-            self.pageError(request, 401)
+            self.pageError(request, C.HTTP_UNAUTHORIZED)
         else:
             guest_session.id = invitation_id
             guest_session.data = data
@@ -67,7 +67,7 @@
                 msg=e))
             # FIXME: no good error code correspond
             #        maybe use a custom one?
-            self.pageError(request, code=503)
+            self.pageError(request, code=C.HTTP_SERVICE_UNAVAILABLE)
 
         log.info(_(u"guest session started, connected with profile [{profile}]".format(
             profile = profile)))