Every error response should share one machine-readable shape (code, message, details) so clients can parse failures uniformly.
Why This Matters
Inconsistent or free-text error bodies force clients into brittle string parsing and degrade error handling across the API.
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and dozens more. Get actionable feedback before code ships.