Skip to Content
API ReferenceErrors & Rate Limits

Errors & Rate Limits

HTTP Error Codes

StatusMeaning
400Bad request — check your request body
401Missing or invalid API key
403API key lacks the required scope
404Resource not found
429Rate limit exceeded
500Server error — contact support

Error Response Format

{ "success": false, "error": "Missing required field: league", "code": 400 }

Rate Limits

PlanRequests/minute
Free60
Pro300
EnterpriseCustom

When the limit is exceeded, the API returns 429 Too Many Requests. Check the Retry-After header to know when to retry:

HTTP/1.1 429 Too Many Requests Retry-After: 30

Common Error Scenarios

401 Unauthorized

{ "success": false, "error": "Invalid or missing API key" }

Ensure your Authorization header is formatted correctly:

Authorization: Bearer sk_live_abc123...

403 Forbidden

{ "success": false, "error": "Insufficient scope: requires read:leagues" }

Your API key doesn’t have the required scope. Regenerate it with the correct scopes from Settings → API Keys.

404 Not Found

{ "success": false, "error": "League not found" }

Verify the resource ID is correct and belongs to your organization.

Support

If you encounter a 500 error, contact support at hello@staty.io with the request details and timestamp.

Last updated on