ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 247 - 350-901 discussion

Report
Export

Refer to the exhibit.

A network engineer needs to handle API errors in their requests when users do not have permission to access the resource, even if they are authenticated and authorized. Which line of code needs to be placed on the snippet where the code is missing to handle these API errors?

A.

if r.status_code == 403

Answers
A.

if r.status_code == 403

B.

il if r.raise for status() == 403

Answers
B.

il if r.raise for status() == 403

C.

if r.raise for_status() = 401

Answers
C.

if r.raise for_status() = 401

D.

if r.status_code = 401

Answers
D.

if r.status_code = 401

Suggested answer: B
asked 10/10/2024
Kevin Langthorne
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first