SnookerAPI
Documentation / Guides

Snooker API errors

Errors

Every error code, what it means and what to do.

An error is {"error": {"code", "message", "docs"}}, with plan and pricing added when a paid plan is needed. Match on code; the message is for people.

StatusCodeWhat to do
400bad_requestA parameter has the wrong shape, or the key was sent in the address. The message names it.
401unauthorizedSend a valid key in a header (Authentication).
403upgrade_requiredThe record is in the archive the paid plans cover. Ask for something from yesterday on, or see Pricing.
404not_foundNo such address or id. Ids come from the list calls.
405bad_requestOnly GET (and OPTIONS) is answered.
422unknown_parameterThe call does not take that parameter; the message lists the ones it does.
429rate_limited, quota_exceededWait for Retry-After seconds.
500server_errorA fault on our side, already logged. Try again shortly.