Skip to content

Commit

Permalink
Fixes status code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ENDAVA\mzorec committed Jan 3, 2023
1 parent 8934198 commit c9b6c4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FlubuCore.WebApi.Client/RestClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ protected async Task<T> GetResponse<T>(HttpResponseMessage response)
}
catch (Exception e)
{
throw new WebApiException(HttpStatusCode.InternalServerError, $"Deserialization failed: StatusCode: {response.StatusCode} Headers: {response.Headers}, RequestMessage: {response.RequestMessage}, Content: {errorString}", e);
throw new WebApiException(response.StatusCode, $"Deserialization failed: StatusCode: {response.StatusCode} Headers: {response.Headers}, RequestMessage: {response.RequestMessage}, Content: {errorString}", e);
}

throw new WebApiException(response.StatusCode, errorString)
Expand Down

0 comments on commit c9b6c4f

Please sign in to comment.