I have a requirment to integrate a .net system with Salesforce using REST API. In that I need to show a proper error message on request payload error.
But in Salesforce I get the response like "System.HttpResponse[Status=Bad Request, StatusCode=400]".
I am getting a correct StatusCode but not Status. Used getStatus() method and getBody() method. Can anyone please let me know how to get the Status using REST API.