HTTP status code
HTTP status code: 500 Internal Server Error
As text you can copy
500 Internal Server Error- Kind
- Status code
What does 500 Internal Server Error mean in HTTP?
The server met an unexpected condition that prevented it from fulfilling the request.
Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.
What it means in trading API work
The fault is on the server's side and the request may have been perfectly valid. For a request that places, changes or cancels an order, a 500 does not prove that nothing happened.
This part is this site's own explanation, written for people learning to call a trading API. It is not part of the source cited above and it describes no particular broker.
What should I do about 500 Internal Server Error?
Do not assume the request had no effect. For an order request, read open orders and positions before sending it again. Retry reads after a pause, and check the provider's status page if it persists.
This page is an independent explanation in plain words. The definition itself is in the source it was read from, which is the authority if the two ever differ.