Error codes

In some cases, our API uses the error objects code field to communicate what caused the request to error.

Example error response containing an error code

{
  "errors": [
    { "code": "1" }
  ]
}
Code Name Description
1 SameLanguage

Translation can not be done because user's language and target language are same

2 UnsupportedLanguage

Translation can not be done because target language is not supported

3 UnidentifiedLanguage

Translation can not be done because source language can not be identified

4 VirusFound

Upload can not be done because of potential infected file found

5 EditPeriodExpired

Message can not be edited/deleted because allowed period is expired.

6 DeletedTag

Tags can’t be assigned, because some of them are deleted

7 InvalidReferencedEvent

Invalid or missing referenced event

8 UnsupportedMimeType

Unsupported mime-type for avatars

9 InvalidJsonSchema

Invalid JSON schema

10 InvalidArgument

Invalid argument