101 · Question #580
What does response code HTTP 302 represent?
The correct answer is D. The requested resource resides temporary under a different URI. HTTP 302 is a redirect status code indicating the requested resource has been temporarily moved to a different URI.
Question
What does response code HTTP 302 represent?
Options
- AThe server encountered an unexpected condition that prevented it from Milling the request.
- BThe server has not found anything matching the Request URI
- CThe request has succeeded.
- DThe requested resource resides temporary under a different URI
How the community answered
(23 responses)- B4% (1)
- C9% (2)
- D87% (20)
Why each option
HTTP 302 is a redirect status code indicating the requested resource has been temporarily moved to a different URI.
HTTP 500 (Internal Server Error) represents an unexpected server-side condition that prevented it from fulfilling the request, not HTTP 302.
HTTP 404 (Not Found) indicates the server could not locate anything matching the requested URI, not HTTP 302.
HTTP 200 (OK) indicates the request succeeded and the server returned the requested content, not HTTP 302.
HTTP 302 (Found) signals to the client that the resource it requested is temporarily located at a different URI provided in the Location response header. Because the redirect is temporary, the client should continue using the original URI for future requests rather than updating bookmarks or links. This differs from 301 (Moved Permanently), where the client is expected to update its reference to the new URI.
Concept tested: HTTP response status code meanings and redirects
Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302
Topics
Community Discussion
No community discussion yet for this question.