The Copyleaks API uses standard HTTP response codes to indicate success or failure. Understanding these codes helps you build robust integrations.

HTTP Errors

Our API returns structured error responses with the following error types:
  • invalid_request_error: Invalid request format, missing parameters, or malformed data.
  • authentication_error: Authentication failed due to invalid credentials, disabled account, or too many failed login attempts.
  • payment_error: Payment-related issues including insufficient credits, expired subscriptions, or team billing errors.
  • api_error: Internal server errors, service overload, timeouts, or temporary unavailability.

Error Response Format

All errors return a consistent JSON structure:
The url and details fields are optional and may not be present in all error responses. The details field, when present, contains an array of objects with param and message properties that provide additional context about specific parameters that caused the error.

Error Reference