Exam4Training

In python, which expression checks whether the script returns a success status code when the Requests library is used?

In python, which expression checks whether the script returns a success status code when the Requests library is used?
A . response.status_code== requests.ok
B. response.status_code== requests.codes.ok
C. response.code== requests.codes.ok
D. response.status_code ! == requests.codes.ok

Answer: B

Explanation:

Reference: https://realpython.com/python-requests/

Latest 200-901 Dumps Valid Version with 211 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version