diff --git a/commercetools.Sdk/commercetools.Base.Client/ExceptionFactory.cs b/commercetools.Sdk/commercetools.Base.Client/ExceptionFactory.cs index 8f224e9c97f..b2f23c95d09 100644 --- a/commercetools.Sdk/commercetools.Base.Client/ExceptionFactory.cs +++ b/commercetools.Sdk/commercetools.Base.Client/ExceptionFactory.cs @@ -33,7 +33,7 @@ private static ApiHttpException CreateServerException(HttpRequestMessage request { var statusCode = (int)response.StatusCode; var body = response.ExtractResponseBody(); - var message = $"Server error response {request.RequestUri} {statusCode} {response.ReasonPhrase}"; + var message = $"Server error response {request.RequestUri} {statusCode} {response.ReasonPhrase} {body}"; List> t = new List>(); var headers = new ApiHttpHeaders(response.Headers.SelectMany(pair => pair.Value.Select(v => new KeyValuePair(pair.Key, v))).ToList()); switch (statusCode) @@ -60,7 +60,7 @@ private static ApiHttpException CreateClientException(HttpRequestMessage request { var statusCode = (int)response.StatusCode; var body = response.ExtractResponseBody(); - var message = $"Client error response {request.RequestUri} {statusCode} {response.ReasonPhrase}"; + var message = $"Client error response {request.RequestUri} {statusCode} {response.ReasonPhrase} {body}"; var headers = new ApiHttpHeaders(response.Headers.SelectMany(pair => pair.Value.Select(v => new KeyValuePair(pair.Key, v))).ToList()); switch (statusCode) {