200-901 · Question #676
What does an HTTP 404 status code indicate when consuming APIs?
The correct answer is D. The API resource was not found for the request.. HTTP 404 Not Found indicates the server cannot locate the requested resource at the given URI, meaning the API endpoint or resource does not exist.
Question
What does an HTTP 404 status code indicate when consuming APIs?
Options
- AThe API request experienced an internal server error.
- BThe user was not authorized to send the request.
- CThe API request experienced a network error.
- DThe API resource was not found for the request.
How the community answered
(22 responses)- A5% (1)
- B5% (1)
- D91% (20)
Why each option
HTTP 404 Not Found indicates the server cannot locate the requested resource at the given URI, meaning the API endpoint or resource does not exist.
An internal server error is represented by HTTP 500, not 404 - 500 indicates the server encountered an unexpected condition preventing it from fulfilling the request.
Unauthorized or forbidden access is indicated by HTTP 401 or 403, not 404.
Network errors are not represented by standard HTTP status codes - 404 is a well-formed HTTP response from the server, not a transport-level failure.
HTTP 404 Not Found is a client error response indicating the server cannot find the resource specified by the request URL, which typically means the API path, resource ID, or identifier is incorrect or the resource has been deleted. It signals a problem with the request URL itself rather than the server or network infrastructure. This is one of the most common errors encountered when consuming REST APIs.
Concept tested: HTTP 404 Not Found status code in API consumption
Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/404
Topics
Community Discussion
No community discussion yet for this question.