Skip to main content

HTTP status codes

Error response format

Errors returned by the Zenedu API use JSON even when the Accept header is omitted. Responses generated by a proxy or CDN before a request reaches the application may use a different format.

Business errors

When a request is valid but the action is not possible, the response carries a machine-readable code next to message: The pro_required error also returns current_plan (Pro, Basic, Trial, or null without an active subscription) and upgrade_url, the dashboard page where the plan can be upgraded:

Rate limiting

API requests are subject to rate limiting. When the limit is exceeded, the API returns a 429 status code with a Retry-After header indicating how many seconds to wait before retrying.

Telegram-specific errors

When sending messages through the API, Telegram may return errors: