QuestenaUn entraînement qui indique quoi revoir ensuite
Question 12

When does RFC 9110 prefer 410 (Gone) over 404 (Not Found)?

  1. When the resource was deleted by a DELETE request rather than by administrative action
  2. When the resource once existed, whether or not its absence is permanent
  3. When the server wants the client to stop retrying, regardless of permanence
  4. When the origin server knows the condition is likely to be permanentBonne réponse

Explication

The distinguishing criterion is knowledge of likely permanence, not the history of the resource or the mechanism of removal. If the server does not know, or has no facility to determine, whether the condition is permanent, 404 is the code to use.

Continuer avec ce test

Commencer l’entraînement
Question 12: When does RFC 9110 prefer 410 (Gone) over 404 (Not Found)? · HTTP Semantics · Questena