BaseHandler.http_error_default(req, fp, code, msg, hdrs)
This method is not defined in BaseHandler
, but subclasses should override it if they intend to provide a catch-all for otherwise unhandled HTTP errors. It will be called automatically by the OpenerDirector
getting the error, and should not normally be called in other circumstances.
req will be a Request
object, fp will be a file-like object with the HTTP error body, code will be the three-digit code of the error, msg will be the user-visible explanation of the code and hdrs will be a mapping object with the headers of the error.
Return values and exceptions raised should be the same as those of urlopen()
.
Please login to continue.