Skip to main content
🔒 Preview mode. The first 15 Foundations lessons are free; this one is Pro. Start a 7-day trial to unlock the editor, AI hints and the rest of the curriculum. Card required, cancel any time in Dashboard.Start 7-day trial →
⚡
← Courses›FastAPI ProductionModule 1 · FastAPI Basics›

Error handling — proper HTTP semantics

quiz7 / 105
+75 XP
Task
A signed-in user requests an order that belongs to someone else. Order IDs are not secret in this API — the caller is allowed to know the order exists, they just have no permission on it. Which HTTP status code is correct?
🎯 Quiz

Question

A signed-in user requests an order that belongs to someone else. Order IDs are not secret in this API — the caller is allowed to know the order exists, they just have no permission on it. Which HTTP status code is correct?