Handle non successful http error codes
amanbha opened this issue · comments
Aman Bhardwaj commented
For http calls made to Dapr runtime, when an error is encountered, an error json is returned in http response body. The json contains an error code and an descriptive error message,
https://github.com/dapr/docs/blob/master/reference/api/error_codes.md
Wrap the actual calls for httpClient.SendAsync in a helper method and use the error info to throw a more meaningful DaprException