Documentation / Guides

Errors

Errors are JSON with a short code you can switch on and a message you can show.

403
{
  "error": {
    "code": "upgrade_required",
    "message": "2026-01-12 is outside the dates your plan (Free key) reads...",
    "pricing": "https://tabletennisapi.com/pricing",
    "docs": "https://tabletennisapi.com/documentation/errors"
  }
}
HTTPCodeWhat to do
400bad_requestA value is malformed, or the key was put in the address
401unauthorizedSend a valid key in a header
403upgrade_requiredThe data is outside your plan; the message names the plans that include it
404not_foundNo match, event or player has that id
422unknown_parameterA filter name is misspelt; the message lists the ones allowed
429rate_limited, quota_exceededWait for Retry-After
500server_errorOur fault, already logged; try again shortly