PyDocs

Nav

Internet Protocols and Support

HTTPError

urllib.error

exception (source)
  • HTTPError(url, code, msg, hdrs, fp)
Raised when HTTP error occurs, but also acts like non-error return
Members of HTTPError

c

code
An HTTP status code as defined in RFC 2616.

f

fp
A file-like object where the HTTP error body can be read from.

h

headers
The HTTP response headers for the HTTP request that caused the HTTPError.

r

reason
This is usually a string explaining the reason for this error.

u

url
Contains the request URL.
0 Examples
No examples for urllib.error/HTTPError.
See Also
No see-alsos for urllib.error/HTTPError
0 Notes
No notes for HTTPError