Correct fetch_url error code documentation (#66061)

HttpError is passed for 400 and above, not only greater than 400. Change docs to `>=` instead of `>`.
This commit is contained in:
Kevin Breit 2020-01-03 08:31:20 -06:00 committed by Alicia Cozine
parent 2f996fc6e2
commit 633f64f780

View file

@ -1435,7 +1435,7 @@ def fetch_url(module, url, data=None, headers=None, method=None,
:kwarg ca_path: (optional) String of file system path to CA cert bundle to use :kwarg ca_path: (optional) String of file system path to CA cert bundle to use
:returns: A tuple of (**response**, **info**). Use ``response.read()`` to read the data. :returns: A tuple of (**response**, **info**). Use ``response.read()`` to read the data.
The **info** contains the 'status' and other meta data. When a HttpError (status > 400) The **info** contains the 'status' and other meta data. When a HttpError (status >= 400)
occurred then ``info['body']`` contains the error response data:: occurred then ``info['body']`` contains the error response data::
Example:: Example::