6. エラーレスポンスボディ
一部の非回答レスポンスは、より詳細な情報を含むエンティティボディを返す場合があります(MAY)。
そのレスポンスの基本構造は、必須のエラーコード番号(HTTPレスポンスコードに対応)を含むオブジェクトクラスと、その後にオプションの「title」という名前の文字列、およびオプションの「description」という名前の文字列配列で構成されます。
以下は共通レスポンスボディの例です。
{
"errorCode": 418,
"title": "Your Beverage Choice is Not Available",
"description":
[
"I know coffee has more ummppphhh.",
"Sorry, dude!"
]
}
図 28
以下は、rdapConformance と notices データ構造を含む共通レスポンスボディの例です。
{
"rdapConformance" :
[
"rdap_level_0"
],
"notices" :
[
{
"title" : "Beverage Policy",
"description" :
[
"Beverages with caffeine for keeping horses awake."
],
"links" :
[
{
"value" : "https://example.net/ip/192.0.2.0/24",
"rel" : "alternate",
"type" : "text/html",
"href" : "https://www.example.com/redaction_policy.html"
}
]
}
],
"lang" : "en",
"errorCode": 418,
"title": "Your beverage choice is not available",
"description":
[
"I know coffee has more ummppphhh.",
"Sorry, dude!"
]
}
図 29