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

IT Questions BankCategory: CCNPWhich 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? 1ITExamAnswers Staff asked 3 months ago

Question:
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

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/

More Questions: CCNP 350-401 Dumps


Related Articles