Справочник ошибок
Сервис CreativeLab API всегда возвращает HTTP 200, а для получения информации об ошибке передает код ошибки в виде JSON в теле ответа.
При успешном сценарии код ошибки будет всегда равен нулю.
Доступные ошибки
| Code | Message |
|---|---|
| 1 | Internal server error. |
| 2 | Invalid token, check if authorization header has a valid value. |
| 3 | Invalid input, check schema issues. |
| 4 | Record not found. |
| 5 | Insufficient balance, check account balance. |
| 6 | Service on heavy load. Try again later. |
| 7 | Has organization restrict for this model. |
| 99 | API method not found, please check url you call. |
| 500 | Internal exception. We already working on this issue. |
| 1001 | Sensitive content has been detected in your request or uploaded files. The security system has blocked data processing. Please check the text and images and try again. Repeated violations may lead to restricted access to your account. |
| 1002 | Your prompt did not pass the content safety check. Please modify your request. Please note that repeating this error may lead to account suspension. |