What should an API error body contain

Back to list2025-12-12
You

What should an API error body contain?

ChatGPT

A stable machine-readable code, a human sentence, and, when the fault is the client's, which field. Stack traces help nobody outside your team, and a bare 400 turns every integration into guesswork.