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

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
B . HTTP Status Code 302
C . HTTP Status Code 401
D . HTTP Status Code: 504

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 indicates a “server error”.

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

Latest 350-401 Dumps Valid Version with 404 Q&As

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

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments