Errors

Writer APIs returns the error information in two levels:

  • HTTP error codes and messages in the header.
  • A JSON object in the response body with additional details that can help you determine how to handle the error.

JSON Object Syntax:

{
    "error": {
        "message": "Request URL not configured properly. Please check and try again",
        "documentation_url": "https://www.zoho.com/writer/help/api/v1/general-errors.html",
        "response_generated_time": 1594131798612,
        "request_url": “https://<invoked_api_request_url>",
        "errorcode": "R2008"
    },
}

KeysDescription
errorThe primary cause of failure for the invoked API will be returned in this key.
messageAn error description.
documentation_urlThe document link which consists of the necessary information about the error.
response_generated_timeThe API response generated time in milliseconds.
request_urlThe HTTP request URL which is used to invoke our APIs.
errorcodeAn unique errorcode.
parameter_nameThe problematic parameter name will be returned. It will not be available in all cases.

In the upcoming sections, you can find the JSON representation of every possible error and a suggested action that can be taken to handle these errors.