# WebSocket Error Codes

| Error Codes | Description                                                                                                                                                              |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 500         | Internal server error, an unexpected issue occurred on the server side.                                                                                                  |
| 501         | Request rate exceeded. The number of WebSocket requests has gone beyond the allowed per-minute limit.                                                                    |
| 505         | The number of requested symbols exceeds the allowed quota.                                                                                                               |
| 506         | Missing parameters, one or more required fields are not provided.                                                                                                        |
| 515         | Invalid parameter format. The request payload must be in valid JSON format.                                                                                              |
| 513         | WebSocket heartbeat timeout. The connection was closed because no heartbeat signal was received within the expected timeframe.                                           |
| 401         | Authentication failed. The API Key is invalid, missing, or not included in the required header or query parameter.                                                       |
| 404         | The requested WebSocket endpoint was not found.                                                                                                                          |
| 427         | The number of WebSocket connections has exceeded the package quota.                                                                                                      |
| 429         | Request rate limit exceeded. Your message frequency exceeds the quota allowed for your current plan.                                                                     |
| 499         | Client-side disconnection. Typically occurs in regions with unstable network conditions. Please reconnect from a stable network.                                         |
| 524         | Origin server connection timed out. Usually caused by temporary instability between our CDN provider and the origin server. The issue typically resolves itself shortly. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.infoway.io/en-docs/getting-started/error-codes/websocket-error-codes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
