Error Handling


  1. It's very important to use proper error handling in your code to avoid suspension of your account and service interruption.
    Take a look on debugging method provided by our API. It can help you to identify the root or the error.
    Normally if something is wrong with your request server will return an error.
    Below you can find tables with lists of errors with descriptions:
  2. Errors can be returned as plain text or as JSON if you provided json=1 parameter.
    In very rare cases server can return HTML page with error text like 500 or 502 - please keep it in mind and handle such cases correctly.
    If you received anything that doesn't looks like the answer or error code - make a 5 seconds timeout and then retry your request.
Error lists are available here.