ウェブサイトにアクセスできません

Moses Skodaエンジニア読了目安 1分

APIはこの問題を422 Unprocessable Contentで返します。typeはhttps://lingo.dev/docs/api/errors/website-unreachableです。すべてのエラーに共通する構造については、エラーとステータスコードを参照してください。

ドメインの名前解決ができないため、https://example.com/pricing を開けませんでした。アドレスに入力ミスがないか確認するか、別のアドレスを試してください。

フィールド#

レスポンス本文には、標準のtype、status、title、detailの各メンバーに加え、次のフィールドが含まれます。detailのテキストはこれらのフィールドから生成されるため、クライアント側で代わりに独自のテキストを表示できます。

フィールド型
urlstring
reason"NotFound" | "Refused"

例#

json
{
  "detail": "Couldn't open https://example.com/pricing: its domain does not resolve. Check the address for typos, or try another address.",
  "url": "https://example.com/pricing",
  "reason": "NotFound",
  "type": "https://lingo.dev/docs/api/errors/website-unreachable",
  "status": 422,
  "title": "Website unreachable"
}