Optional ReadonlytypeURI reference identifying the problem type.
Optional ReadonlystatusHTTP status code generated by the origin server.
NetworkError where no origin server assigned one, as for a failure toProblem normalises.
Optional ReadonlytitleShort, human-readable summary of the problem type.
Should be the same for all occurrences of this problem type, for example Payment Required or Not Found.
Optional ReadonlydetailHuman-readable explanation specific to this occurrence of the problem.
Optional ReadonlyinstanceURI reference identifying the specific occurrence of the problem.
Optional ReadonlyreportMachine-readable details about this occurrence of the problem.
An RFC 9457 extension member, such as a validation trace or a diagnostic payload consumers may branch on.
Problem details for HTTP APIs.
Portable description of an error condition, as defined by RFC 9457, which obsoletes RFC 7807. Every field is optional, so a problem carries as much detail as its source provides.
typeandtitleclassify the problem,status,detailandinstancepin it to a specific occurrence, andreportcarries machine-readable data.toProblem normalises an arbitrary failure value into this shape and isProblem recognises a value already carrying it.
reject rejects unsuccessful responses in this shape, and resolve restates a problem as a response; a client assembled with both surfaces transport failures and error responses alike as problems.
Example
See
RFC 9457 - Problem Details for HTTP APIs