エラー
エラーはRFC 9457に準拠したproblem documentで、固定のtype URLからこのページの該当箇所に移動できます。エラーにクレジットはかかりません。
型
| 型 | ステータス | タイトル |
|---|
| unauthorized | 401 | Missing or invalid API key. リクエストにAPIキーがないか、キーが間違っている、無効化されている、または期限切れです。 |
| out-of-credits | 402 | Out of credits. この呼び出しに必要なクレジットがアカウントに残っていません。 |
| forbidden | 403 | This key may not call this endpoint. キーは有効ですが、このエンドポイントは呼び出せません。プランに含まれないエンドポイントや、liveキー専用のルートをテストキーで呼び出した場合などです。 |
| not-found | 404 | Not found. ステータスフィードにこのIDの取得元はありません。 |
| product-not-found | 404 | Product not found. ショップにこのIDまたはURLの商品がないか、ページがもう存在しません。 |
| unknown-endpoint | 404 | Unknown endpoint. このパスで応答するエンドポイントはありません。 |
| conflict | 409 | Conflict. リクエストがリソースの現在の状態と競合しています。 |
| invalid-request | 422 | Invalid request. パラメーターが不足しているか、型が違うか、値が範囲外です。errors配列にすべて列挙されます。 |
| not-a-product | 422 | The page is not a product. URLは開けますが、商品ページではありません(カテゴリー、検索、トップページなど)。 |
| rate-limited | 429 | Too many requests. このキーで短時間にリクエストが多すぎます。 |
| internal | 500 | Internal error. 当社側で問題が発生しました。 |
| not-implemented | 501 | Not implemented. このエンドポイントは一覧にありますが、まだ応答しません。 |
| upstream-failed | 502 | We couldn't fetch this page right now. 今回はショップからこのページを取得できませんでした。 |
| catalogue-unavailable | 503 | Endpoint list unavailable. 公開のエンドポイント一覧(/v2/endpoints)が一時的に読み取れませんでした。 |
| circuit-open | 503 | Site temporarily unavailable. クレジットを守るため、エラーが続いた取得元を一時停止しました。レスポンスの本文のstaleに、最後に取得できた正しいデータが入っている場合があります。 |
| status-unavailable | 503 | Status unavailable. 公開のステータスフィード(/v2/status)が一時的に読み取れませんでした。 |
エラーの構造
application/problem+json{
"type": "https://www.retailed.io/datasources/docs/errors/invalid-request",
"title": "Invalid request",
"status": 422,
"requestId": "req_…",
"detail": "…"
}
| 項目 | 型 | 説明 |
|---|
| type | string (uri) | – |
| title | string | – |
| status | integer | – |
| detail? | string | – |
| instance? | string | – |
| requestId | string | – |
| retryAfterS? | integer | – |
| errors? | object[] | – |
| errors[].param | string | – |
| errors[].message | string | – |
| stale? | any | Last good data, when a circuit is open. |