harnessracingapi

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_request400
Something in the call is wrong: a bad date, a key in the address. The message says what.
unknown_parameter422
A parameter the endpoint does not take. The message lists the ones it does.
unauthorized401
No key, or a key we do not know.
upgrade_required403
The endpoint needs a bigger plan, named in plan.
not_found404
No record with that id. Ids are ours: take them from another answer.
rate_limited429
Too many calls this minute. Wait for Retry-After.
quota_exceeded429
Your calls for the day are used up. They reset at 00:00 UTC.
not_ready503
The data behind this call is being built. Try again shortly.
server_error500
Our fault. It is logged and we are on it.

An empty result is never an error: it is a 200 with meta.count 0.