ExamGecko
Question list
Search
Search

Related questions











Question 268 - 350-401 discussion

Report
Export

Which HHTP status code is the correct response for a request with an incorrect password applied to a REST API session?

A.

HTTP Status Code 200

Answers
A.

HTTP Status Code 200

B.

HTTP Status Code 302

Answers
B.

HTTP Status Code 302

C.

HTTP Status Code 401

Answers
C.

HTTP Status Code 401

D.

HTTP Status Code: 504

Answers
D.

HTTP Status Code: 504

Suggested answer: C

Explanation:

A 401 error response indicates that the client tried to operate on a protected resource without providing the proper authorization. It may have provided the wrong credentials or none at all.

Note: answer 'HTTP Status Code 200' 4xx code indicates a "client error" while a 5xx code indicatesa "server error".

Reference: https://restfulapi.net/http-status-codes/

asked 10/10/2024
ILLIA VELIASEVICH
46 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first