First of all, this is a partial client problem, a problem with a partial server. Some standard solutions:
- configure the interface so that it does not allow the user to send specific actions too often (for example, in JS, to disable abili to send a request to delete one thing twice),
- server speed limits are usually not required, but may be useful,
Take StackOverflow as an example: when you do a survey, you cannot reassign it again, and when you do, for example When posting comments, you need to wait a couple of seconds between submissions.
As for the mistakes ... Perhaps you are facing one of several problems. For instance:
- connection problems (lack of connection, closed access connection or very slow connection),
- restriction of the internal client (for example, the number of simultaneous requests has reached the maximum allowable),
- others, server-side restrictions (speed limit, request blocking, etc.),
source share