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.
From .net system I get proper error status like "400 BillingAddress is not complete", tested this in "Advance REST client" in Chrome.
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.