APIエラー

Vonage APIがエラーを返した場合、例えばアカウントにクレジットがない場合、APIはRFC 7807フォーマットでエラーを返します。

これは、問題が何であるか、なぜそれが発生したか、それを解決するための手順の基本的な説明を提供します。クレジット不足がどのような形式で表示されるかは、例を参照してください。

アプリケーションがどのようなエラーを処理する必要があるか、前もって考えておくといいかもしれません。このページでは、発生しうるすべてのエラーのリストと、その対処方法についてのより詳細な説明を提供しています。

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>"
}

Reports API

CodeInformationActions
invalid-request-parameters

Description

The provided payload is invalid

Resolution

Modify your request to provide a valid payload

invalid-abort-operation

Description

The job is already in a terminated state such as SUCCESS, TRUNCATED, FAILED or ABORTED.

Resolution

None

rate-limit

Description

The request was rate limited.

Resolution

The Reports API supports 5 requests per second when used Asynchronously, and 10 requests per second Synchronously. Slow down your request rate.