Zoho Lens - API Errors


Zoho Lens uses HTTP status codes to indicate the success or failure of an API call. In general, status codes in the 2xx range means success, 4xx range means there was an error in the provided information, and those in the 5xx range indicate server-side errors. Commonly used HTTP status codes are listed below.

Status CodeDescription
400Bad Request
401Unauthorized (Invalid AuthToken)
404URL not found
405Method not allowed (Method you have called is not supported for the invoked API)
429Rate limit exceeded (API usage limit exceeded)
500Internal error


CopiedRequest Example

 $ curl -X GET  'https://lens.zoho.com/api/v2/user' \
     -H Authorization: Zoho-oauthtoken 1000.45928a488f1e453626a93e9816.384eb5e2d96c928a4fcff88f1e452be9

Response Example

 HTTP/1.1 404 Not Found
  Content-Type: application/json;charset=UTF-8
            message:"error message"