nerdexam
Exams350-201Questions#14
Cisco

350-201 · Question #14

350-201 Question #14: Real Exam Question with Answer & Explanation

The correct answer is D: 404. HTTP 404 is returned when a requested resource cannot be found on the server, even when the request is properly authenticated.

Question

What is the HTTP response code when the REST API information requested by the authenticated user cannot be found?

Options

  • A401
  • B402
  • C403
  • D404
  • E405

Explanation

HTTP 404 is returned when a requested resource cannot be found on the server, even when the request is properly authenticated.

Common mistakes.

  • A. 401 Unauthorized indicates the request lacks valid authentication credentials, not that the resource is missing.
  • B. 402 Payment Required is reserved for future use and is not a standard response for missing resources.
  • C. 403 Forbidden means the server understood the request but refuses to authorize it - the user is authenticated but lacks permission, which is a different scenario from a resource not being found.
  • E. 405 Method Not Allowed indicates the HTTP method used (GET, POST, etc.) is not supported for the target resource, not that the resource is absent.

Concept tested. HTTP REST API response status codes

Reference. https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404

Community Discussion

No community discussion yet for this question.

Full 350-201 Practice