ErrorResponse
Error response object based on RFC 7807 Problem Details for HTTP APIs. See https://datatracker.ietf.org/doc/html/rfc7807 for details.
Response Format: A response is either in the new RFC 7807 Problem Details format OR the legacy Message format, but never both.
- New Format (RFC 7807): Contains the
typeproperty and standard problem detail properties (title,detail,status). May also include additional extension members. - Legacy Format: Contains only the
Messageproperty. This format is used for some existing error responses during our transition to full RFC 7807 compliance.
Usage: Check if the type property is present. If it exists, the response is in RFC 7807 format. If type is absent, fall back to reading the Message property.
Properties
Examples:
Modern RFC 7807 Problem Details format
Legacy error response format