Designing API Error Responses: Unifying Inconsistent Errors with RFC 9457 Problem Details
If one API returns a string, another returns { error }, and a third returns { message, code }, the frontend needs different code for every error. What makes a good error response, the standard RFC 9457 Problem Details format, per-field validation errors, hiding internals, and handling it all in one place in Node.js.