def __init__(self, request_method,
                 request_path,
                 status_code, reason,
                 message=None):
        super(CHttpError, self).__init__(message)
        self.request_method = request_method
        self.request_path = request_path
        self.status_code = status_code
        self.reason = reason