Closed sungysang closed 4 years ago
@Julian88Tex this can be closed unless you want testing on it, although it may be tough to test since I'm not sure how to reproduce an API error in Salesforce
@sungysang I consider testing of #57 as a valid test of this issue and will close. Thanks.
Google does not populate the default status code on the HTTPResponse so response.getStatusCode() will always be 200 even if an error message is inside it. For situations where Salesforce has issues getting back a response or sending a request, instead of returning null if the status != 200, an exception should be thrown to the backend and frontend that describes the issue.