RFC 7807はRFC 9457によって廃止・置換されています。このページはRFC 7807の公開時点の内容を扱います。現行仕様はRFC 9457クイズで確認してください。以下のSection番号はRFC 7807を指します。
responseにはtype、title、status、detail、instanceと、problem固有のretry_token memberがある。clientは5つのbase memberを理解するが、retry_tokenは理解しない。
2つのresponseは同じtype URIを使う。titleは英語と日本語へlocalizeされ、detailはaccountごとに異なる。clientは現在、英語titleで処理を分岐している。
originはHTTP 409とbodyのstatus: 409を生成した。gatewayがHTTP statusだけを502へ変更し、bodyはそのまま転送した。汎用clientは502とstatus: 409を受信する。
429 responseがtypeを省略し、title: "Quota exhausted"を返した。clientはこのtitleを標準化されたquota-exhaustion subtypeとして扱いたい。
validation-error typeはinvalid_params arrayを定義する。Client Aはdetailへ正規表現を適用してfield名を抽出する。Client Bはtypeを確認し、そのextensionを理解する場合だけinvalid_paramsを読む。
agentは未知のtype URIを受け取った。そのhostはinternal addressへ解決される。汎用error handlerは未知typeをすべてdereferenceして説明を取得する設計である。
base URIがhttps://api.example/tasks/7であるproblem documentに、type: "../problems/quota"とinstance: "#attempt-2"が含まれる。
APIはdatabase stack traceをdetailで返し、改行を含むattacker-controlled detailをencodeせずline-oriented audit logへコピーする。
backendはHTTP 403とspecific problem typeを返す。gatewayはHTTP statusを200へ変え、bodyのstatus: 403を残し、titleをlocalizeする。A2A clientは200をsuccessとして扱い、bodyに気付くと英語titleで分岐する。