rugbyAPI
Guides / Errors

Errors

Every error has the same shape and a stable code to switch on. The message is written for a person and may change; the code will not.

{ "error": { "code": "plan_required", "message": "Archive is needed for /v1/players/{id}.", "plan": "archive", "upgrade": "https://rugbyapi.com/pricing" } }
StatusCodes
400key_in_address: the key was sent in the address; send it in a header
401missing_key, invalid_key, revoked_key
403plan_required, with plan and upgrade
404not_found, bad_id, no_such_endpoint
405method_not_allowed
422unknown_parameter, bad_parameter, missing_parameter
429daily_limit, with resets_utc
5xxinternal_error (logged on our side), not_available, archive_unavailable (retry in a minute)

Unknown parameters are refused rather than ignored, so a typo never quietly returns everything.