Коды ошибок
При выполнении команды может возникнуть ошибка. В этом случае ошибка будет возвращена виде, стандартном для соответсвующего протокола.
Пример ошибки для JSON-RPC:
{
"result": null,
"error": {
"code": -32700,
"message": "Parse error."
},
"id":null
}
Пример ошибки для XML-RPC:
<methodResponse> <fault> <value> <struct> <member> <name>faultCode</name> <value> <int>-32700</int> </value> </member> <member> <name>faultString</name> <value> <string>Parse error.</string> </value> </member> </struct> </value> </fault> </methodResponse>
Список ошибок
- 1001 exception.wrong.version
- 1002 exception.wrong.trust.key
- 1005 exception.session.expired
- 1009 exception.auth.user.error
- 1011 exception.video.not.exists
- 1012 exception.news.not.exists
- 1013 exception.external.video.not.exists
- 1014 exception.journal.post.not.exists
- 1015 exception.static.page.not.exists
- 1024 exception.not.existing.tag
- 1025 exception.must.auth
- 1026 exception.video.not.user
- 1027 exception.broadcast.edit.permission.denied
- 1029 exception.upload.limit
- 1030 exception.wrong.dev.id
- 1035 exception.rubric.not.exists
- 1036 exception.cant.delete.video
- 1037 exception.comment.not.exists
- 1038 exception.comment.not.user
- 1042 exception.wrong.captcha
- 1043 exception.not.moderated
- 1044 exception.cant.edit.others.broadcast
- 1045 exception.broadcast.not.exists
- 1048 exception.dev.id.not.allowed
- 1050 exception.no.user
- 1051 exception.cant.create.tmp.frame.file
- 1052 exception.wrong.video.class
- 1053 exception.cant.edit.tmp.frame.file
- 1055 exception.auth.social.partner.error
- 1056 exception.auth.social.wrong.access.token
- 1057 exception.partner.not.exists
- 1058 exception.partner.user.id.required
- 1201 exception.session.id.contains.illegal.chars
- 1202 exception.fake.session.id
- 1213 exception.cant.post.comments
- 1301 exception.need.porno.agreement
- 3000 exception.session.started
- 3001 exception.multi.method
- 3002 exception.multi.method.signature
- 3003 exception.no.edit.data
- 3004 exception.xml.parse
- 3005 exception.protocol.error
- 3006 exception.cant.find.xml.tag
- 3007 exception.authorized
- 3008 exception.wrong.qiplogin
- 3009 exception.user.cant.create.broadcast
- 3010 exception.video.professional.content
- 5001 exception.depricated
- 5002 disabled.exception