Web Technology Basics

Which of the following correctly pairs an HTTP status code with its meaning?

  1. A301: The requested resource is temporarily at another URL
  2. B404: The requested resource was not found on the server
  3. C503: The request was malformed and the server could not understand it
Show answer and explanation

Answer: B. 404: The requested resource was not found on the server

A status code is a three-digit number whose hundreds digit indicates its class. 2xx is success (200 OK, 201 Created, 204 No Content), 3xx is redirection (301 Moved Permanently, 302 Found, 304 Not Modified), 4xx is a client error (400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found) and 5xx is a server error (500 Internal Server Error, 503 Service Unavailable). 404 indicates that the resource identified by the URL was not found on the server.

  • A. 301 indicates that the resource has moved permanently. 302 or 307 is used for a temporary move.
  • B. Correct. 404 Not Found indicates that the requested resource was not found.
  • C. A malformed request is indicated by 400 Bad Request. 503 indicates that the server temporarily cannot handle requests because of overload or maintenance.
Practice this topic Back to topic

Books on Web Technology Basics Ad

As an Amazon Associate I earn from qualifying purchases.

More Web Technology Basics questions

  1. On a members-only website, an ordinary member who is logged in requests a page that only administrators may access. The server knows who the user is but does not allow access to this page. Which of the following status codes is most appropriate to return?
  2. A web API returns data in JSON format as the body of its response. Which of the following headers is generally added to the response to indicate the format of the body?
  3. A browser requests an image it received earlier once again, putting the ETag value from that earlier response into the If-None-Match header. If the image on the server has not changed, which of the following is the correct server response?
  4. Which of the following correctly describes HTTP/2 and HTTP/3?
  5. From a web server with an RTT of 40 ms, one HTML file and the four images it references are fetched one after another. Assume that establishing a TCP connection takes one round trip and each request and response take one round trip, and ignore data transfer time, server processing time, TLS and connection teardown. Which of the following is the difference in total time between opening a new TCP connection for each object and reusing one TCP connection (a persistent connection)?