DocsStart here
Errors
Every failure has the same shape and a code you can switch on. The docs link comes here.
{
"error": {
"code": "upgrade_required",
"message": "This endpoint is on the Live plan and above.",
"plan": "Live",
"upgrade": "https://tennisdatabaseapi.com/pricing",
"docs": "https://tennisdatabaseapi.com/documentation/errors"
}
}1Codes
| HTTP | Code | Meaning |
|---|---|---|
| 400 | bad_request | A parameter is missing or out of range, or the key was sent in the address. |
| 401 | unauthorized | No key, or a key that is unknown or revoked. |
| 403 | upgrade_required | The plan does not include this endpoint or these dates; the error names the plan that does. |
| 404 | not_found | No such endpoint, or no such id. |
| 422 | unknown_parameter | A parameter this endpoint does not take; the message lists the ones it does. |
| 429 | rate_limited | Too many calls this minute; wait for Retry-After. |
| 429 | quota_exceeded | The day's or month's allowance is used; the message says when it resets. |
| 500 | server_error | Something went wrong on our side; it has been logged. |
| 503 | server_error | A part of the service is unavailable for a moment; try again shortly. |