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" }

Explanation

Consistent shapes let the frontend map type to user messages and field errors without per-endpoint code.

Further reading

Problem with a question

System Design · Middle · question 57

Test yourself

Take the System Design · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz