FormFav LogoFormFav

    Errors

    The API uses standard HTTP status codes and returns errors in a consistent JSON format.

    Error Format

    All error responses return a JSON object with a detail field:

    json
    { "detail": "Error message describing what went wrong" }

    Status Codes

    CodeMeaningCommon Causes
    400Bad RequestMissing required parameters, invalid date format, race number out of range
    401UnauthorizedMissing or invalid API key, expired key
    403ForbiddenAPI key valid but insufficient tier for this endpoint
    404Not FoundNo race data for that date/track/race combination, unknown venue
    429Too Many RequestsDaily rate limit exceeded
    500Internal ErrorServer-side error — contact support if persistent

    Error Examples

    Missing required parameter:

    400
    Response
    json
    { "detail": "Missing required parameter: date" }

    Invalid API key:

    401
    Response
    json
    { "detail": "Invalid or missing API key" }

    Rate limit exceeded:

    429
    Response
    json
    { "detail": "Rate limit exceeded. Check Retry-After header." }

    Rate Limiting

    When you receive a 429 response, read the Retry-After header for the exact number of seconds until the next slot opens. FormFav uses a rolling 24-hour window — not a midnight reset. See the Rate Limiting guide for details.

    Monitor your usage with the X-RateLimit-Remaining-Day response header to avoid hitting limits.