Errors

Errors use standard HTTP status codes and an RFC 9457 problem-details body (application/problem+json). detail is written to be shown to a person or read by an agent, and says how to fix the request.

{
  "type": "https://www.chicagopolitics.org/developers/errors",
  "title": "Not found",
  "status": 404,
  "detail": "No member with id 999 (use ward 1-50, or 100 + ward for a former member)."
}

Status codes

StatusTitleWhat to do
400Bad requestA parameter is invalid; detail names it (for example "limit must be an integer from 1 to 200.")
401API key required / Invalid API keySend a valid key. The WWW-Authenticate header points OAuth clients to the authorization server
404Not foundNo such member, matter, meeting, or endpoint. Check the id or the path
429Too many requests / Daily limit reachedWait Retry-After seconds (see rate limits)
503UnavailableA data source is loading or briefly down. Retry later