Jeroen T. Vermeulen has proposed merging 
lp:~jtv/maas/unauthorized-exception-for-doris into lp:maas.

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~jtv/maas/unauthorized-exception-for-doris/+merge/93322

Since our PermissionDenied exception is really 403: Forbidden, we still need 
something for 401: Unauthorized.  Needed for the metadata work.
-- 
https://code.launchpad.net/~jtv/maas/unauthorized-exception-for-doris/+merge/93322
Your team Launchpad code reviewers is requested to review the proposed merge of 
lp:~jtv/maas/unauthorized-exception-for-doris into lp:maas.
=== modified file 'src/maasserver/exceptions.py'
--- src/maasserver/exceptions.py	2012-02-14 10:42:20 +0000
+++ src/maasserver/exceptions.py	2012-02-15 23:48:18 +0000
@@ -53,6 +53,11 @@
     api_error = httplib.FORBIDDEN
 
 
+class Unauthorized(MaasAPIException):
+    """HTTP error 401: Unauthorized.  Login required."""
+    api_error = httplib.UNAUTHORIZED
+
+
 class NodesNotAvailable(MaasAPIException):
     """Requested node(s) are not available to be acquired."""
     api_error = httplib.CONFLICT

_______________________________________________
Mailing list: https://launchpad.net/~launchpad-reviewers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~launchpad-reviewers
More help   : https://help.launchpad.net/ListHelp

Reply via email to