I am using an API to get some response.

When I check my HttpResponse. It is like this:

System.HttpResponse[Status=null, StatusCode=0]

In what case we get such a response?


The issue was with the wrong endPoint provided in the HttpRequest.

After providing the correct URL the issue is resolved

Not the answer you're looking for? Browse other questions tagged or ask your own question.