> ## Documentation Index
> Fetch the complete documentation index at: https://gowa-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# エラー

> エラー応答形式とGOWA APIによって返されるコード。

エラーは、`SUCCESS`コード以外の標準エンベロープを使用します。

```json theme={null}
{
  "code": "VALIDATION_ERROR",
  "message": "phone: cannot be blank."
}
```

`message`ではなく、HTTPステータスと`code`のブランチ。

| HTTP | コード |
| - | - |
| 400 | `VALIDATION_ERROR` 、 `INVALID_JID` 、 `ALREADY_LOGGED_IN` 、 `DEVICE_ID_REQUIRED` |
| 401 | `AUTHENTICATION_ERROR` (デバイスがログインしていません); ベーシック認証失敗 (JSON `code`なし) |
| 403 | `AVATAR_HIDDEN`, `CROSS_SITE_REQUEST_BLOCKED` |
| 404 | `NOT_FOUND`, `DEVICE_NOT_FOUND`, `AVATAR_NOT_SET` |
| 408 | `CONTEXT_ERROR` |
| 429 | `WA_REACHOUT_TIMELOCK` |
| 500 | `INTERNAL_SERVER_ERROR` 、 `QR_CHANNEL_ERROR` 、 `SESSION_SAVED_ERROR` 、 `UPLOAD_MEDIA_ERROR` 、 `WEBHOOK_ERROR` 、 `INVALID_WA_CLI` |
| 503 | `DEVICE_MANAGER_UNAVAILABLE` |
| 504 | `GATEWAY_TIMEOUT` |

意味、対処方法、再試行の指針については、[エラー処理](https://gowa-docs.mintlify.site/ja/advanced/error-handling.md)を参照してください。

`GET /user/avatar` の場合、`AVATAR_NOT_SET` は連絡先にプロフィール画像がないことを意味します。 `AVATAR_HIDDEN` はプライバシー設定へのアクセスを拒否することを意味します。 プライバシー拒否時にキャッシュされた画像を保持し、これらのコードとデバイス選択エラーを区別します。


## Related topics

- [エラー処理](https://gowa-docs.mintlify.site/ja/advanced/error-handling.md)
- [Chatwoot統合](https://gowa-docs.mintlify.site/ja/integrations/chatwoot.md)
- [デバイスを再接続](https://gowa-docs.mintlify.site/ja/api-reference/device/デバイスを再接続.md)
- [マルチデバイスとデバイス選択](https://gowa-docs.mintlify.site/ja/concepts/multidevice.md)
- [端末の接続状態を取得する](https://gowa-docs.mintlify.site/ja/api-reference/device/端末の接続状態を取得する.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.