All jobs / Backend developer / API Development

Backend developer interview question · 1–3 years

The interviewer asks: “How should API errors look to clients?” Strongest answer?

The strongest answer

A stable shape — Problem Details (RFC 9457) or equivalent: type, title, status, a machine code, correlation id. Don't change field names per endpoint. Don't leak stacks.

Why it works

Exactly. Frontends and other services bind to a contract. A correlation id lets support grep logs without a stack in the browser.

What a good answer covers

Answers that fall short

Who gets asked this

More API Development questions