Which HTTP status code is returned when a requested web page has been…

2023

Which HTTP status code is returned when a requested web page has been permanently moved to a new URL?

Answer: C. 301ConceptHTTP response status codes classify the outcome of a request. The 3xx class contains redirection responses as well as related control responses such as…

  1. A.

    200

  2. B.

    500

  3. C.

    301

  4. D.

    404

Attempted by 467 students.

Show answer & explanation

Correct answer: C

Concept

HTTP response status codes classify the outcome of a request. The 3xx class contains redirection responses as well as related control responses such as 304 Not Modified.

A permanent redirect tells the client that the target resource has been assigned a new permanent URI and that future references should use that URI.

Application

The stem describes a resource that has permanently moved. The HTTP code whose registered meaning is Moved Permanently is 301.

Cross-check and contrast

  • 200 OK describes successful processing of the current request.

  • 500 Internal Server Error describes an unexpected failure on the server.

  • 404 Not Found describes the absence of a current representation at the requested URI.

Result

Therefore, the required status code is 301 Moved Permanently.

Explore the full course: Up Police Computer Operator

Loading lesson…