def METHOD_NAME(self, url, fp, errcode, errmsg, headers):
    self.errcode = errcode
    return urllib.FancyURLopener.METHOD_NAME(self, url, fp, errcode,
                                                    errmsg, headers)