diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-05-31 04:39:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-31 04:39:00 (GMT) |
commit | 0a36ac1a09587735237c5978ebd046313922869c (patch) | |
tree | 95a9ba44ac327cddbec5eb03dfb03cd1bc8f6551 /Doc/howto/urllib2.rst | |
parent | a5c42284e69fb309bdd17ee8c1c120d1be383012 (diff) | |
download | cpython-0a36ac1a09587735237c5978ebd046313922869c.zip cpython-0a36ac1a09587735237c5978ebd046313922869c.tar.gz cpython-0a36ac1a09587735237c5978ebd046313922869c.tar.bz2 |
bpo-33641: Convert RFC references into links. (GH-7103)
85% of them are already links.
Diffstat (limited to 'Doc/howto/urllib2.rst')
-rw-r--r-- | Doc/howto/urllib2.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/howto/urllib2.rst b/Doc/howto/urllib2.rst index ef1791c..046a88a 100644 --- a/Doc/howto/urllib2.rst +++ b/Doc/howto/urllib2.rst @@ -239,7 +239,7 @@ a different URL, urllib will handle that for you). For those it can't handle, urlopen will raise an :exc:`HTTPError`. Typical errors include '404' (page not found), '403' (request forbidden), and '401' (authentication required). -See section 10 of RFC 2616 for a reference on all the HTTP error codes. +See section 10 of :rfc:`2616` for a reference on all the HTTP error codes. The :exc:`HTTPError` instance raised will have an integer 'code' attribute, which corresponds to the error sent by the server. @@ -252,7 +252,7 @@ codes in the 100--299 range indicate success, you will usually only see error codes in the 400--599 range. :attr:`http.server.BaseHTTPRequestHandler.responses` is a useful dictionary of -response codes in that shows all the response codes used by RFC 2616. The +response codes in that shows all the response codes used by :rfc:`2616`. The dictionary is reproduced here for convenience :: # Table mapping response codes to messages; entries have the |