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:
parent
2f996fc6e2
commit
633f64f780
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
: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::
|
||||
|
||||
Example::
|
||||
|
|
Loading…
Reference in a new issue