API Design · Junior · Question 25 of 75
What does a good error response body include?
- ✓Correct answer: A stable machine-readable code, a human-readable message, and details such as which fields failed
- 2Only the HTTP status code repeated
- 3The full stack trace
Explanation
RFC 9457 Problem Details (type, title, status, detail, instance) is a standard format for this.