> This page is for Web API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://ibkrcampus.com/docs/llms.txt.

# Error Codes

The following is a consolidated list of error codes returnable by the [/SendRequest endpoint](/docs/web-api/api-reference/send-request) and [/GetStatement endpoints](/web-api/flex-web-service/using-flex-web-service/retrieve-the-report) when a server-side failure occurs.

| ErrorCode | ErrorMessage                                                                                                                                        |
| --------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1001      | Statement could not be generated at this time. Please try again shortly.                                                                            |
| 1003      | Statement is not available.                                                                                                                         |
| 1004      | Statement is incomplete at this time. Please try again shortly.                                                                                     |
| 1005      | Settlement data is not ready at this time. Please try again shortly.                                                                                |
| 1006      | FIFO P/L data is not ready at this time. Please try again shortly.                                                                                  |
| 1007      | MTM P/L data is not ready at this time. Please try again shortly.                                                                                   |
| 1008      | MTM and FIFO P/L data is not ready at this time. Please try again shortly.                                                                          |
| 1009      | The server is under heavy load. Statement could not be generated at this time. Please try again shortly.                                            |
| 1010      | Legacy Flex Queries are no longer supported. Please convert over to Activity Flex.                                                                  |
| 1011      | Service account is inactive.                                                                                                                        |
| 1012      | Token has expired.                                                                                                                                  |
| 1013      | IP restriction.                                                                                                                                     |
| 1014      | Query is invalid.                                                                                                                                   |
| 1015      | Token is invalid.                                                                                                                                   |
| 1016      | Account in invalid.                                                                                                                                 |
| 1017      | Reference code is invalid.                                                                                                                          |
| 1018      | Too many requests have been made from this token. Please try again shortly.  Limited to one request per second, 10 requests per minute (per token). |
| 1019      | Statement generation in progress. Please try again shortly.                                                                                         |
| 1020      | Invalid request or unable to validate request.                                                                                                      |
| 1021      | Statement could not be retrieved at this time. Please try again shortly.                                                                            |
| 1025      | Too many failed attempts.                                                                                                                           |