📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

📚 Interview question

When would you choose a 409 Conflict over a 412 Precondition Failed?

Mid-Level Theory Intermediate

🎯 Key points

  • 412: a conditional header evaluated false
  • 409: conflict with current resource state or business rules
  • 412 is resolved by re-reading and retrying
  • 409 needs a different request or user decision
  • Both should carry ProblemDetails explaining the conflict

⏱ 30-second answer

412 means a precondition the client sent (If-Match, If-Unmodified-Since, If-None-Match on a write) evaluated false: the resource isn't in the version the client expected. 409 means the request conflicts with the current state for a business reason regardless of version, such as cancelling an already-shipped order or creating a username that exists. A client handles 412 by re-reading and retrying; it handles 409 by changing the request.

🔍 What the interviewer is checking

Checks precise status code semantics

↩ Usually asked after

More in API Reliability

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me