Which line of code must be added on the snippet where the code is missing?

Refer to the exhibit.

A network engineer writes a script to test authentication workflow using Python and REST API. The engineer wants to ensure that the script handles expected errors by matching output to HTTP status codes. The scnpt uses the Python requests module .

Which line of code must be added on the snippet where the code is missing?
A . requests.error_code
B . response.sutus_code
C . response
D . requests.post

Answer: C

Latest 350-901 Dumps Valid Version with 169 Q&As

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

Subscribe
Notify of
guest
1 Comment
Inline Feedbacks
View all comments
Tsu
Tsu
1 year ago

The correct answer is B if we correct the typing mistake response.status_code