ID EN
Urllib Request

BaseHandler.http_error_<nnn>(req, fp, code, msg, hdrs)

Python 3.11

nnn should be a three-digit HTTP error code. This method is also not defined in BaseHandler, but will be called, if it exists, on an instance of a subclass, when an HTTP error with code nnn occurs.

Syntax

PYTHON
BaseHandler.http_error_<nnn>(req, fp, code, msg, hdrs)

See Also

BaseHandler http_error_default()