Requests · Error
HTTPError
Requests sends HTTP requests with simple method functions such as get() and post(). The returned Response object provides the status, headers, cookies, body, and decoded JSON.
Last updated
Syntax
requests.request(method, url, **kwargs)
requests.get(url, **kwargs)
requests.post(url, data=None, json=None, **kwargs)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
ResponseResponse.raise_for_status()Response.json()requests.Sessionrequests.codesrequests.exceptions.RequestExceptionrequests.exceptions.HTTPErrorrequests.exceptions.ConnectionError