63 instantiations of StatusCodeHttpResult
Microsoft.AspNetCore.Http.Results (63)
ResultsCache.StatusCodes.cs (63)
83return new StatusCodeHttpResult(statusCode); 88StatusCodes.Status101SwitchingProtocols => _status101SwitchingProtocols ??= new(StatusCodes.Status101SwitchingProtocols), 89StatusCodes.Status102Processing => _status102Processing ??= new(StatusCodes.Status102Processing), 90StatusCodes.Status200OK => _status200OK ??= new(StatusCodes.Status200OK), 91StatusCodes.Status201Created => _status201Created ??= new(StatusCodes.Status201Created), 92StatusCodes.Status202Accepted => _status202Accepted ??= new(StatusCodes.Status202Accepted), 93StatusCodes.Status203NonAuthoritative => _status203NonAuthoritative ??= new(StatusCodes.Status203NonAuthoritative), 94StatusCodes.Status204NoContent => _status204NoContent ??= new(StatusCodes.Status204NoContent), 95StatusCodes.Status205ResetContent => _status205ResetContent ??= new(StatusCodes.Status205ResetContent), 96StatusCodes.Status206PartialContent => _status206PartialContent ??= new(StatusCodes.Status206PartialContent), 97StatusCodes.Status207MultiStatus => _status207MultiStatus ??= new(StatusCodes.Status207MultiStatus), 98StatusCodes.Status208AlreadyReported => _status208AlreadyReported ??= new(StatusCodes.Status208AlreadyReported), 99StatusCodes.Status226IMUsed => _status226IMUsed ??= new(StatusCodes.Status226IMUsed), 100StatusCodes.Status300MultipleChoices => _status300MultipleChoices ??= new(StatusCodes.Status300MultipleChoices), 101StatusCodes.Status301MovedPermanently => _status301MovedPermanently ??= new(StatusCodes.Status301MovedPermanently), 102StatusCodes.Status302Found => _status302Found ??= new(StatusCodes.Status302Found), 103StatusCodes.Status303SeeOther => _status303SeeOther ??= new(StatusCodes.Status303SeeOther), 104StatusCodes.Status304NotModified => _status304NotModified ??= new(StatusCodes.Status304NotModified), 105StatusCodes.Status305UseProxy => _status305UseProxy ??= new(StatusCodes.Status305UseProxy), 106StatusCodes.Status306SwitchProxy => _status306SwitchProxy ??= new(StatusCodes.Status306SwitchProxy), 107StatusCodes.Status307TemporaryRedirect => _status307TemporaryRedirect ??= new(StatusCodes.Status307TemporaryRedirect), 108StatusCodes.Status308PermanentRedirect => _status308PermanentRedirect ??= new(StatusCodes.Status308PermanentRedirect), 109StatusCodes.Status400BadRequest => _status400BadRequest ??= new(StatusCodes.Status400BadRequest), 110StatusCodes.Status401Unauthorized => _status401Unauthorized ??= new(StatusCodes.Status401Unauthorized), 111StatusCodes.Status402PaymentRequired => _status402PaymentRequired ??= new(StatusCodes.Status402PaymentRequired), 112StatusCodes.Status403Forbidden => _status403Forbidden ??= new(StatusCodes.Status403Forbidden), 113StatusCodes.Status404NotFound => _status404NotFound ??= new(StatusCodes.Status404NotFound), 114StatusCodes.Status405MethodNotAllowed => _status405MethodNotAllowed ??= new(StatusCodes.Status405MethodNotAllowed), 115StatusCodes.Status406NotAcceptable => _status406NotAcceptable ??= new(StatusCodes.Status406NotAcceptable), 116StatusCodes.Status407ProxyAuthenticationRequired => _status407ProxyAuthenticationRequired ??= new(StatusCodes.Status407ProxyAuthenticationRequired), 117StatusCodes.Status408RequestTimeout => _status408RequestTimeout ??= new(StatusCodes.Status408RequestTimeout), 118StatusCodes.Status409Conflict => _status409Conflict ??= new(StatusCodes.Status409Conflict), 119StatusCodes.Status410Gone => _status410Gone ??= new(StatusCodes.Status410Gone), 120StatusCodes.Status411LengthRequired => _status411LengthRequired ??= new(StatusCodes.Status411LengthRequired), 121StatusCodes.Status412PreconditionFailed => _status412PreconditionFailed ??= new(StatusCodes.Status412PreconditionFailed), 122StatusCodes.Status413RequestEntityTooLarge => _status413RequestEntityTooLarge ??= new(StatusCodes.Status413RequestEntityTooLarge), 123StatusCodes.Status414RequestUriTooLong => _status414RequestUriTooLong ??= new(StatusCodes.Status414RequestUriTooLong), 124StatusCodes.Status415UnsupportedMediaType => _status415UnsupportedMediaType ??= new(StatusCodes.Status415UnsupportedMediaType), 125StatusCodes.Status416RequestedRangeNotSatisfiable => _status416RequestedRangeNotSatisfiable ??= new(StatusCodes.Status416RequestedRangeNotSatisfiable), 126StatusCodes.Status417ExpectationFailed => _status417ExpectationFailed ??= new(StatusCodes.Status417ExpectationFailed), 127StatusCodes.Status418ImATeapot => _status418ImATeapot ??= new(StatusCodes.Status418ImATeapot), 128StatusCodes.Status419AuthenticationTimeout => _status419AuthenticationTimeout ??= new(StatusCodes.Status419AuthenticationTimeout), 129StatusCodes.Status421MisdirectedRequest => _status421MisdirectedRequest ??= new(StatusCodes.Status421MisdirectedRequest), 130StatusCodes.Status422UnprocessableEntity => _status422UnprocessableEntity ??= new(StatusCodes.Status422UnprocessableEntity), 131StatusCodes.Status423Locked => _status423Locked ??= new(StatusCodes.Status423Locked), 132StatusCodes.Status424FailedDependency => _status424FailedDependency ??= new(StatusCodes.Status424FailedDependency), 133StatusCodes.Status426UpgradeRequired => _status426UpgradeRequired ??= new(StatusCodes.Status426UpgradeRequired), 134StatusCodes.Status428PreconditionRequired => _status428PreconditionRequired ??= new(StatusCodes.Status428PreconditionRequired), 135StatusCodes.Status429TooManyRequests => _status429TooManyRequests ??= new(StatusCodes.Status429TooManyRequests), 136StatusCodes.Status431RequestHeaderFieldsTooLarge => _status431RequestHeaderFieldsTooLarge ??= new(StatusCodes.Status431RequestHeaderFieldsTooLarge), 137StatusCodes.Status451UnavailableForLegalReasons => _status451UnavailableForLegalReasons ??= new(StatusCodes.Status451UnavailableForLegalReasons), 138StatusCodes.Status500InternalServerError => _status500InternalServerError ??= new(StatusCodes.Status500InternalServerError), 139StatusCodes.Status501NotImplemented => _status501NotImplemented ??= new(StatusCodes.Status501NotImplemented), 140StatusCodes.Status502BadGateway => _status502BadGateway ??= new(StatusCodes.Status502BadGateway), 141StatusCodes.Status503ServiceUnavailable => _status503ServiceUnavailable ??= new(StatusCodes.Status503ServiceUnavailable), 142StatusCodes.Status504GatewayTimeout => _status504GatewayTimeout ??= new(StatusCodes.Status504GatewayTimeout), 143StatusCodes.Status505HttpVersionNotsupported => _status505HttpVersionNotsupported ??= new(StatusCodes.Status505HttpVersionNotsupported), 144StatusCodes.Status506VariantAlsoNegotiates => _status506VariantAlsoNegotiates ??= new(StatusCodes.Status506VariantAlsoNegotiates), 145StatusCodes.Status507InsufficientStorage => _status507InsufficientStorage ??= new(StatusCodes.Status507InsufficientStorage), 146StatusCodes.Status508LoopDetected => _status508LoopDetected ??= new(StatusCodes.Status508LoopDetected), 147StatusCodes.Status510NotExtended => _status510NotExtended ??= new(StatusCodes.Status510NotExtended), 148StatusCodes.Status511NetworkAuthenticationRequired => _status511NetworkAuthenticationRequired ??= new(StatusCodes.Status511NetworkAuthenticationRequired), 149_ => new StatusCodeHttpResult(statusCode),
72 references to StatusCodeHttpResult
Microsoft.AspNetCore.Http.Results (66)
ResultsCache.StatusCodes.cs (62)
15private static StatusCodeHttpResult? _status101SwitchingProtocols; 16private static StatusCodeHttpResult? _status102Processing; 17private static StatusCodeHttpResult? _status200OK; 18private static StatusCodeHttpResult? _status201Created; 19private static StatusCodeHttpResult? _status202Accepted; 20private static StatusCodeHttpResult? _status203NonAuthoritative; 21private static StatusCodeHttpResult? _status204NoContent; 22private static StatusCodeHttpResult? _status205ResetContent; 23private static StatusCodeHttpResult? _status206PartialContent; 24private static StatusCodeHttpResult? _status207MultiStatus; 25private static StatusCodeHttpResult? _status208AlreadyReported; 26private static StatusCodeHttpResult? _status226IMUsed; 27private static StatusCodeHttpResult? _status300MultipleChoices; 28private static StatusCodeHttpResult? _status301MovedPermanently; 29private static StatusCodeHttpResult? _status302Found; 30private static StatusCodeHttpResult? _status303SeeOther; 31private static StatusCodeHttpResult? _status304NotModified; 32private static StatusCodeHttpResult? _status305UseProxy; 33private static StatusCodeHttpResult? _status306SwitchProxy; 34private static StatusCodeHttpResult? _status307TemporaryRedirect; 35private static StatusCodeHttpResult? _status308PermanentRedirect; 36private static StatusCodeHttpResult? _status400BadRequest; 37private static StatusCodeHttpResult? _status401Unauthorized; 38private static StatusCodeHttpResult? _status402PaymentRequired; 39private static StatusCodeHttpResult? _status403Forbidden; 40private static StatusCodeHttpResult? _status404NotFound; 41private static StatusCodeHttpResult? _status405MethodNotAllowed; 42private static StatusCodeHttpResult? _status406NotAcceptable; 43private static StatusCodeHttpResult? _status407ProxyAuthenticationRequired; 44private static StatusCodeHttpResult? _status408RequestTimeout; 45private static StatusCodeHttpResult? _status409Conflict; 46private static StatusCodeHttpResult? _status410Gone; 47private static StatusCodeHttpResult? _status411LengthRequired; 48private static StatusCodeHttpResult? _status412PreconditionFailed; 49private static StatusCodeHttpResult? _status413RequestEntityTooLarge; 50private static StatusCodeHttpResult? _status414RequestUriTooLong; 51private static StatusCodeHttpResult? _status415UnsupportedMediaType; 52private static StatusCodeHttpResult? _status416RequestedRangeNotSatisfiable; 53private static StatusCodeHttpResult? _status417ExpectationFailed; 54private static StatusCodeHttpResult? _status418ImATeapot; 55private static StatusCodeHttpResult? _status419AuthenticationTimeout; 56private static StatusCodeHttpResult? _status421MisdirectedRequest; 57private static StatusCodeHttpResult? _status422UnprocessableEntity; 58private static StatusCodeHttpResult? _status423Locked; 59private static StatusCodeHttpResult? _status424FailedDependency; 60private static StatusCodeHttpResult? _status426UpgradeRequired; 61private static StatusCodeHttpResult? _status428PreconditionRequired; 62private static StatusCodeHttpResult? _status429TooManyRequests; 63private static StatusCodeHttpResult? _status431RequestHeaderFieldsTooLarge; 64private static StatusCodeHttpResult? _status451UnavailableForLegalReasons; 65private static StatusCodeHttpResult? _status500InternalServerError; 66private static StatusCodeHttpResult? _status501NotImplemented; 67private static StatusCodeHttpResult? _status502BadGateway; 68private static StatusCodeHttpResult? _status503ServiceUnavailable; 69private static StatusCodeHttpResult? _status504GatewayTimeout; 70private static StatusCodeHttpResult? _status505HttpVersionNotsupported; 71private static StatusCodeHttpResult? _status506VariantAlsoNegotiates; 72private static StatusCodeHttpResult? _status507InsufficientStorage; 73private static StatusCodeHttpResult? _status508LoopDetected; 74private static StatusCodeHttpResult? _status510NotExtended; 75private static StatusCodeHttpResult? _status511NetworkAuthenticationRequired; 77internal static StatusCodeHttpResult StatusCode(int statusCode)
StatusCodeHttpResult.cs (1)
16/// Initializes a new instance of the <see cref="StatusCodeHttpResult"/> class
TypedResults.cs (3)
644/// Creates a <see cref="StatusCodeHttpResult"/> object by specifying a <paramref name="statusCode"/>. 647/// <returns>The created <see cref="StatusCodeHttpResult"/> object for the response.</returns> 648public static StatusCodeHttpResult StatusCode(int statusCode)
Microsoft.AspNetCore.Http.Results.Tests (6)
ResultsTests.cs (3)
1584var result = Results.StatusCode(statusCode) as StatusCodeHttpResult; 1776(() => Results.StatusCode(200), typeof(StatusCodeHttpResult)),
StatusCodeResultTests.cs (2)
16var result = new StatusCodeHttpResult(StatusCodes.Status404NotFound); 31var result = new StatusCodeHttpResult(200);
TypedResultsTests.cs (1)
1363var result = TypedResults.StatusCode(statusCode);