Typed SDK errors

Errors

SDKではHTTP/Transportエラーを型付き例外として扱えます。

PYTHON
from dwallet import (
    DWalletAPIError,
    DWalletUnauthorizedError,
    DWalletForbiddenError,
    DWalletNotFoundError,
    DWalletConflictError,
    DWalletRateLimitError,
    DWalletServerError,
    DWalletTransportError,
)

Common status

401 API Key invalid/revoked
403 Scope/identity denied
404 Resource not found
409 Conflict/idempotency conflict
429 Rate limit
5xx Server error

request_id

APIエラーの調査時はSecretではなくrequest_idを記録してください。

Developer Dashboard

Application、API Key、Scope、Webhook、Usage、Audit、Payment履歴はDeveloper Dashboardから管理できます。