33 references to StatusCodeResult
BasicWebSite (1)
Controllers\HomeController.cs (1)
61
return new
StatusCodeResult
(StatusCodes.Status204NoContent);
FormatterWebSite (1)
Controllers\InputFormatterController.cs (1)
14
return new
StatusCodeResult
(StatusCodes.Status400BadRequest);
Microsoft.AspNetCore.Mvc.Core (10)
BadRequestResult.cs (1)
22
:
base
(DefaultStatusCode)
ConflictResult.cs (1)
21
:
base
(DefaultStatusCode)
ControllerBase.cs (1)
220
=> new
StatusCodeResult
(statusCode);
NoContentResult.cs (1)
21
:
base
(DefaultStatusCode)
NotFoundResult.cs (1)
21
public NotFoundResult() :
base
(DefaultStatusCode)
OkResult.cs (1)
22
:
base
(DefaultStatusCode)
RequireHttpsAttribute.cs (1)
68
filterContext.Result = new
StatusCodeResult
(StatusCodes.Status403Forbidden);
UnauthorizedResult.cs (1)
21
public UnauthorizedResult() :
base
(DefaultStatusCode)
UnprocessableEntityResult.cs (1)
22
:
base
(DefaultStatusCode)
UnsupportedMediaTypeResult.cs (1)
21
public UnsupportedMediaTypeResult() :
base
(DefaultStatusCode)
Microsoft.AspNetCore.Mvc.Core.Test (7)
HttpStatusCodeResultTests.cs (2)
20
var result = new
StatusCodeResult
(StatusCodes.Status404NotFound);
39
var result = new
StatusCodeResult
(StatusCodes.Status404NotFound);
Infrastructure\ActionMethodExecutorTest.cs (2)
490
public Task<IActionResult> ReturnIActionResultAsync() => Task.FromResult((IActionResult)new
StatusCodeResult
(201));
494
public Task<StatusCodeResult> ReturnsIActionResultSubTypeAsync() => Task.FromResult(new
StatusCodeResult
(200));
Infrastructure\ClientErrorResultFilterTest.cs (2)
76
var actionResult = new
StatusCodeResult
(statusCode);
94
var actionResult = new
StatusCodeResult
(statusCode);
RequireHttpsAttributeTests.cs (1)
223
filterContext.Result = new
StatusCodeResult
(StatusCodes.Status404NotFound);
Microsoft.AspNetCore.Mvc.Cors (2)
CorsAuthorizationFilter.cs (1)
95
context.Result = new
StatusCodeResult
(StatusCodes.Status204NoContent);
DisableCorsAuthorizationFilter.cs (1)
35
context.Result = new
StatusCodeResult
(StatusCodes.Status204NoContent);
Microsoft.AspNetCore.Mvc.RazorPages (2)
PageBase.cs (1)
1147
=> new
StatusCodeResult
(statusCode);
PageModel.cs (1)
1499
=> new
StatusCodeResult
(statusCode);
Mvc.Api.Analyzers.Test (10)
TestFiles\ActualApiResponseMetadataFactoryTest\InspectReturnExpressionTests.cs (1)
27
return new
StatusCodeResult
(204);
TestFiles\ActualApiResponseMetadataFactoryTest\InspectReturnExpressionTestsForSwitchExpression.cs (1)
38
_ => new
StatusCodeResult
(204)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromConstructorParameters.Input.cs (4)
18
return new
StatusCodeResult
(422);
23
return new
StatusCodeResult
(StatusCodes.Status202Accepted);
30
return new
StatusCodeResult
(localStatusCode);
35
return new
StatusCodeResult
(FieldStatusCode);
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromConstructorParameters.Output.cs (4)
24
return new
StatusCodeResult
(422);
29
return new
StatusCodeResult
(StatusCodes.Status202Accepted);
36
return new
StatusCodeResult
(localStatusCode);
41
return new
StatusCodeResult
(FieldStatusCode);