diff --git a/src/Wemogy.AspNet/Controllers/ApiGatewayBase.cs b/src/Wemogy.AspNet/Controllers/ApiGatewayBase.cs index 269abe4..048a1a8 100644 --- a/src/Wemogy.AspNet/Controllers/ApiGatewayBase.cs +++ b/src/Wemogy.AspNet/Controllers/ApiGatewayBase.cs @@ -82,7 +82,7 @@ private async Task JsonGatewayAsync(string resource, Method method var result = await _restClient.ExecuteAsync(restRequest, cancellationToken); if (!result.IsSuccessful) { - return new StatusCodeResult((int)result.StatusCode); + return StatusCode((int)result.StatusCode, result.Content); } if (result.Content == null)