HTTP status codes
Error response format
Errors returned by the Zenedu API use JSON even when theAccept 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-readablecode 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 a429 status code with a Retry-After header indicating how many seconds to wait before retrying.