Every error comes as JSON with a fixed code. Here is how to react:
invalid_api_key- Key wrong, revoked or expired. Check the header “Authorization: Bearer …”.
missing_scope- The key lacks the scope for this call. Change scopes in your account.
rate_limited- Too many requests in one minute. Wait as long as Retry-After says.
concurrency_limit- Too many renders at once. Wait until one is done.
daily_test_limit- The 25 test renders of the last 24 hours are used up. It continues as older ones drop out.
maintenance- Briefly unavailable. Try again later; the status page shows the state.
Did this help?