@@ -0,0 +1,603 @@
+from BaseHTTPServer import BaseHTTPRequestHandler%0A%0A%0Aclass HTTPError(Exception):%0A%0A    default_status = 500%0A%0A    def __init__(self, status=None, message=None):%0A        %22%22%22Initialize class.%22%22%22%0A        responses = BaseHTTPRequestHandler.responses%0A        self.status_code = status or self.default_status%0A        error_message = %22%25d: %25s%22 %25 (self.status_code,%0A                                    responses%5Bself.status_code%5D%5B0%5D)%0A        if message:%0A            error_message = %22%25s - %25s%22 %25 (error_message,%0A                                         message)%0A%0A        super(HTTPError, self).__init__(error_message)

Add HTTPError class