DocumentationStart
Errors
Every error has the same shape: a code you can code against, and a message for people.
{
"error": {
"code": "upgrade_required",
"message": "Racecards are on Live, Complete and Analyst.",
"plan": "Live",
"docs": "https://harnessracingapi.com/documentation/errors"
}
}bad_request400Something in the call is wrong: a bad date, a key in the address. The message says what.
unknown_parameter422A parameter the endpoint does not take. The message lists the ones it does.
unauthorized401No key, or a key we do not know.
upgrade_required403The endpoint needs a bigger plan, named in
plan.not_found404No record with that id. Ids are ours: take them from another answer.
rate_limited429Too many calls this minute. Wait for
Retry-After.quota_exceeded429Your calls for the day are used up. They reset at 00:00 UTC.
not_ready503The data behind this call is being built. Try again shortly.
server_error500Our fault. It is logged and we are on it.
An empty result is never an error: it is a 200 with meta.count 0.