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).

404
{ "error": "no_such_player" }

Every error

StatuserrorWhenDo
400store_neededThe game has several data stores, or none, and no store was named.Add store.
400bad_queryThe search can’t be read. message and at say why and where.Fix the search
401bad_keyNo key, or not one that works: wrong, removed, or of another kind.Check the key.
403planThe organisation’s plan has no API. The key is kept.Change the plan.
404no_such_storeNo data store of that name and scope.List the stores
404no_such_playerNo such key in the data store, or the player was deleted.Check the key.
404no_such_versionAtomo didn’t keep that save.List the saves
429too_fastToo many requests for the game, or too many at once from your organisation.Wait for Retry-After.
429busyAnother request of your organisation is still running.Wait for Retry-After, then one at a time.
503busyAtomo is busy.Wait for Retry-After.
503unavailableSomething went wrong on Atomo’s side.Wait for Retry-After; tell us if it lasts.

Limits

WhatLimit
Requests1,200 a minute for each game
At onceOne request at a time for each organisation
A search4 seconds, 2,000 characters, 40 conditions; 200 players listed
History100 saves an answer
EditsThe newest 100
Keys that don’t existChecked 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.

Asking again, in Luau
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