diff src/pages/g/page_meta.py @ 938:9be057e23ce6

pages (g): use new constants
author Goffi <goffi@goffi.org>
date Thu, 27 Apr 2017 01:15:24 +0200
parents b5490fa65348
children aba7208d9d50
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)))