Thank you TariqHussain,
I have tried the endpoint with necessary tenantid and customer id with the following code,
<#assign responses=http.client.request("https","api.lithium.com","community/2.0/mytenantid/users/5").json().get()/>
<#if responses.hasError>
There is some error
<#else>
There is no error..
</#if>
But unfortunately, i'm getting
FreeMarker template error:
The following has evaluated to null or missing:
==> responses.status [in template "test_endpoint.ftl" at line 3, column 24]
----
Tip: It's the step after the last dot that caused this error, not those before it.
----
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?
Could you please guide me how to resolve this error?