API Design · Middle · Question 11 of 75
What's the right status for a request that's well-formed but violates a business rule, like 'can't ship an unpaid order'?
- ✓Correct answer: Usually
409 Conflict(state conflict) or422 Unprocessable Content, with a clear error code - 2
500 Internal Server Error - 3
200 OKwithsuccess: false
Explanation
Pick a convention and use it across the API. The body explains the rule that failed.