Skip to main content
The Leonar API uses standard HTTP status codes and returns structured error responses.

Error format

Error codes

insufficient_credits payload

When credits are missing, the response includes an error.details object describing the credit type and the gap:

Handling errors