Which HTTP response status code means “Forbidden”?
A.
500
B.
401
C.
403
D.
502
The Answer Is:
B
This question includes an explanation.
Explanation:
A developer is creating a script to interact with a REST API service that requires basic authentication. The correct combination of payload and headers using Basic Authentication with the provided Base64 encoded credentials is:
A. This option does not use headers correctly. B. Option B - Correct. This option correctly places the 'Authorization' header in the headers dictionary with 'Basic' authentication. C. This option uses 'Bearer' instead of 'Basic' for the 'Authorization' header. D. This option uses 'Bearer' instead of 'Basic' for the 'Authorization' header.
References:
HTTP Authentication
Base64 Encoding
200-901 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 65% Discount on All Products,
Use Coupon: "ac4s65"