error envelope

A fixed wrapper shape for every error response, so clients can read any error the same way.

In more detail

Without an envelope each service returns its own mix of strings and objects, and clients need special code for each. A standard envelope, such as Problem Details, lets one piece of client code handle every error.

Example

A client-side normalizer maps Problem Details invalidParams onto form fields.

Related terms

Taught in

References