Study for CodeHS The Internet Test. Engage with interactive quizzes and practice questions with detailed explanations. Prepare confidently for your exam!

Multiple Choice

What does HTTP status code 302 mean?

A temporary redirect tells the browser to fetch the requested resource from a different URL for this request. When the server responds with this code, it includes the new URL in the Location header, and the client automatically follows it. The key point is that the move is temporary, so the original URL should continue to be used for future requests. This differs from a permanent redirect, where the new URL should be used going forward. The other options describe different situations: Not Modified means the cached version is still good, Bad Request indicates a syntax error in the request, and Internal Server Error indicates a server problem.

A temporary redirect tells the browser to fetch the requested resource from a different URL for this request. When the server responds with this code, it includes the new URL in the Location header, and the client automatically follows it. The key point is that the move is temporary, so the original URL should continue to be used for future requests.

This differs from a permanent redirect, where the new URL should be used going forward. The other options describe different situations: Not Modified means the cached version is still good, Bad Request indicates a syntax error in the request, and Internal Server Error indicates a server problem.