Web Technology Basics
Which of the following correctly pairs an HTTP status code with its meaning?
- A301: The requested resource is temporarily at another URL
- B404: The requested resource was not found on the server
- 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.