1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
class Code2xx(Exception): pass class Code200(Code2xx): pass class Error4xx(Exception): pass class Error404(Error4xx): pass class Error5xx(Exception): pass class Error500(Error5xx): pass class Error502(Error5xx): pass