changeset 13:226a97dd79ff

Added two errors
author Ralph Meijer <ralphm@ik.nu>
date Sat, 17 Jul 2004 22:02:40 +0000
parents d45e921a5d2a
children 68e900b46d49
files idavoll/xmpp_error.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/idavoll/xmpp_error.py	Fri Jul 09 15:46:10 2004 +0000
+++ b/idavoll/xmpp_error.py	Sat Jul 17 22:02:40 2004 +0000
@@ -4,7 +4,9 @@
 	'bad-request':				{'code': '400', 'type': 'modify'},
 	'not-authorized':			{'code': '401', 'type': 'cancel'},
 	'item-not-found':			{'code': '404', 'type': 'cancel'},
+	'internal-server-error':	{'code': '500', 'type': 'wait'},
 	'feature-not-implemented':	{'code': '501', 'type': 'cancel'},
+	'service-unavailable':		{'code': '503', 'type': 'cancel'},
 }
 
 def error_from_iq(iq, condition, text = '', type = None):