System Design · Middle · Question 57 of 75
Why use a standard error format like RFC 9457 Problem Details?
{ "type": "/errors/out-of-stock", "title": "Out of stock", "status": 409, "detail": "Only 2 left" }- ✓Correct answer: Clients can handle errors from all endpoints uniformly and show machine-readable reasons
- 2It's required for HTTPS
- 3It makes errors smaller
Explanation
Consistent shapes let the frontend map type to user messages and field errors without per-endpoint code.