RETRYABLE_SERVER_ERRORS
Documentation / @discordeno/rest / RETRYABLE_SERVER_ERRORS
Variable: RETRYABLE_SERVER_ERRORS
constRETRYABLE_SERVER_ERRORS:ReadonlySet<number>
Defined in: manager.ts:40
The server errors a request is re-sent on.
Remarks
Both of these come from a gateway sitting in front of the api rather than from the api itself, so the request never reached anything that could act on it and re-sending it cannot execute it twice.
500 and 504 are deliberately not here. A 500 came from the api, which means it did get the request and may have carried part of it
out before failing, and a 504 means the api was handed the request and did not answer in time, so it may well have run. Re-sending
either could create a second channel for one call.