7 implementations of StatusCode
Microsoft.AspNetCore.Mvc.Core (4)
ContentResult.cs (1)
28
public int?
StatusCode
{ get; set; }
JsonResult.cs (1)
62
public int?
StatusCode
{ get; set; }
ObjectResult.cs (1)
57
public int?
StatusCode
{ get; set; }
StatusCodeResult.cs (1)
31
int? IStatusCodeActionResult.
StatusCode
=> StatusCode;
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
PartialViewResult.cs (1)
22
public int?
StatusCode
{ get; set; }
ViewComponentResult.cs (1)
25
public int?
StatusCode
{ get; set; }
ViewResult.cs (1)
22
public int?
StatusCode
{ get; set; }
5 references to StatusCode
Microsoft.AspNetCore.Mvc.Core (4)
Infrastructure\ClientErrorResultFilter.cs (2)
43
if (clientError.
StatusCode
< 400)
54
Log.TransformingClientError(_logger, context.Result.GetType(), result.GetType(), clientError.
StatusCode
);
Infrastructure\IStatusCodeActionResult.cs (1)
10
/// produce an HTTP response with the specified <see cref="
StatusCode
"/>.
Infrastructure\ProblemDetailsClientErrorFactory.cs (1)
17
var problemDetails = _problemDetailsFactory.CreateProblemDetails(actionContext.HttpContext, clientError.
StatusCode
);
Microsoft.AspNetCore.Mvc.Core.Test (1)
HttpStatusCodeResultTests.cs (1)
45
Assert.Equal(StatusCodes.Status404NotFound, statusResult?.
StatusCode
);