APIエラー

Vonage API がエラーを返した場合、たとえばアカウントの残高がない場合など、API はRFC 7807 形式のエラーを返します。

ここでは、問題の内容、発生原因、および解決手順について基本的な説明を行います。out-of-credit の書式については、例をご覧ください。

アプリケーションでどのようなエラーに対処する必要があるかを、あらかじめ検討しておくことをお勧めします。このページでは、発生しうるすべてのエラーの一覧と、それらへの対処方法についてより詳しく説明しています。

HTTP/1.1 403 Forbidden
Content-Type: application/problem+json
Content-Language: en
{
  "type": "https://example.com/Error#out-of-credit",
  "title": "You do not have enough credit",
  "detail": "Your current balance is 30, but that costs 50.",
  "instance": "<trace_id>"
}

Redact API

コード情報アクション
invalid-product

説明

The provided product is invalid

決議

Modify your request to provide a valid product

premature-redaction

説明

There is a 1 hour time period before data can be redacted to allow for all data to propagate through the Vonage system

決議

Wait until the data becomes valid for redaction

rate-limit

説明

The request was rate limited

決議

The Redact API supports 170 requests per second. Slow down your request rate