Which status code in HTTP response protocols indicates that the requested web resource could not be found on the server?
Answer and explanation
Correct answer: B. `404 Not Found`
- Step 1: HTTP status codes are 3-digit integers categorized by initial digit.
- Step 2: The `4xx` class denotes client-side errors; specifically, `404 Not Found` indicates that the server cannot locate the requested URI.
Answer
`404 Not Found`.
Why not the others: '`200 OK`' indicates a successful request; '`301 Moved Permanently`' indicates URL redirection; '`500 Internal Server Error`' indicates a server-side execution crash.
Practise more Python Programming, Data Structures, Algorithms, Networks and Cybersecurity.
Free questions with an explanation for every one, and full timed Saudi Secondary School Certificate mock tests.
More Python Programming, Data Structures, Algorithms, Networks and Cybersecurity questions
- What is the time complexity of searching for an element in an unsorted array of elements using linear search?
- What is the output of the following Python expression: `[x**2 for x in range(5) if x % 2 == 1]`?
- Which data structure operates on a Last-In, First-Out (LIFO) access principle?
- Which SQL clause is used to filter aggregated group records after a `GROUP BY` statement has been applied?
- What type of network topology connects all nodes to a central forwarding device such as a network switch?
- In cybersecurity, what type of malicious attack overwhelms a web server with massive volumes of traffic from multiple compromised sources to…