bpo-33830: Fix an example in http.client docs for 404. (GH-7780) · python/cpython@f0af4c5

Original file line numberDiff line numberDiff line change

@@ -497,6 +497,7 @@ Here is an example session that uses the ``GET`` method::

497497

b'<!doctype html>\n<!--[if"...

498498

...

499499

>>> # Example of an invalid request

500+

>>> conn = http.client.HTTPSConnection("docs.python.org")

500501

>>> conn.request("GET", "/parrot.spam")

501502

>>> r2 = conn.getresponse()

502503

>>> print(r2.status, r2.reason)