Errors and limits
Every status and error code, and how long to wait.
On this page
An error answer is JSON with an error code, and the status says what kind of error it is. Two answers come before Atomo reads the request, as plain text: 403 Not allowed (a request to the wrong address) and 404 Not found (a path that isn’t one of the API’s).
{ "error": "no_such_player" }
Every error
| Status | error | When | Do |
|---|---|---|---|
| 400 | store_needed | The game has several data stores, or none, and no store was named. | Add store. |
| 400 | bad_query | The search can’t be read. message and at say why and where. | Fix the search |
| 401 | bad_key | No key, or not one that works: wrong, removed, or of another kind. | Check the key. |
| 403 | plan | The organisation’s plan has no API. The key is kept. | Change the plan. |
| 404 | no_such_store | No data store of that name and scope. | List the stores |
| 404 | no_such_player | No such key in the data store, or the player was deleted. | Check the key. |
| 404 | no_such_version | Atomo didn’t keep that save. | List the saves |
| 429 | too_fast | Too many requests for the game, or too many at once from your organisation. | Wait for Retry-After. |
| 429 | busy | Another request of your organisation is still running. | Wait for Retry-After, then one at a time. |
| 503 | busy | Atomo is busy. | Wait for Retry-After. |
| 503 | unavailable | Something went wrong on Atomo’s side. | Wait for Retry-After; tell us if it lasts. |
Limits
| What | Limit |
|---|---|
| Requests | 1,200 a minute for each game |
| At once | One request at a time for each organisation |
| A search | 4 seconds, 2,000 characters, 40 conditions; 200 players listed |
| History | 100 saves an answer |
| Edits | The newest 100 |
| Keys that don’t exist | Checked one at a time, apart from real keys; past 20 waiting, the rest get busy |
Waiting
Every 429 and 503 has Retry-After, in seconds. Wait that long, then send the request again.
local function ask(request)
for _ = 1, 3 do
local ok, response = pcall(HttpService.RequestAsync, HttpService, request)
if ok and response.StatusCode ~= 429 and response.StatusCode ~= 503 then
return response
end
local after = if ok then response.Headers["retry-after"] or response.Headers["Retry-After"] else nil
local wait = tonumber(after)
task.wait(wait or 5)
end
return nil
end