Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "A cache sends `If-None-Match` for a stored GET response and receives `304 Not Modified`. What should it do?" on CodeWiki (https://codewiki.com/practice/mcq/foundations/http-semantics/conditional-304/).
Context (verbatim from the page):
"""
A cache sends `If-None-Match` for a stored GET response and receives `304 Not Modified`. What should it do?
Replace the stored representation with an empty body.
Keep the stored content and update permitted metadata from the 304 response.
Follow the `Location` field with POST.
Treat 304 as a server failure.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in CS foundations. Where you are unsure, say so.