Which line of code needs to be placed on the snippet where the code is missing to handle these API errors?

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
B. il if r.raise for status() == 403
C. if r.raise for_status() = 401
D. if r.status_code = 401

cisco-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.