1206 references to StatusCodes
Aspire.Dashboard (10)
Microsoft.AspNetCore.Authentication.DeviceBoundSessions (14)
Microsoft.AspNetCore.Authentication.Negotiate (4)
Microsoft.AspNetCore.Components.Endpoints (5)
Microsoft.AspNetCore.Components.Server (3)
Microsoft.AspNetCore.Cors (2)
Microsoft.AspNetCore.Diagnostics (4)
Microsoft.AspNetCore.Diagnostics.HealthChecks (3)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (19)
Microsoft.AspNetCore.Http (2)
Microsoft.AspNetCore.Http.Abstractions (2)
Microsoft.AspNetCore.Http.Connections (35)
Internal\HttpConnectionDispatcher.cs (26)
106context.Response.StatusCode = StatusCodes.Status405MethodNotAllowed;
125context.Response.StatusCode = StatusCodes.Status405MethodNotAllowed;
142context.Response.StatusCode = StatusCodes.Status405MethodNotAllowed;
153await WriteRefreshErrorAsync(context, StatusCodes.Status404NotFound, "refresh_disabled");
161await WriteRefreshErrorAsync(context, StatusCodes.Status400BadRequest, "missing_connection_token");
168await WriteRefreshErrorAsync(context, StatusCodes.Status404NotFound, "connection_not_found");
179await WriteRefreshErrorAsync(context, StatusCodes.Status400BadRequest, "unsupported_negotiate_version");
192await WriteRefreshErrorAsync(context, StatusCodes.Status401Unauthorized, "invalid_token");
199await WriteRefreshErrorAsync(context, StatusCodes.Status400BadRequest, "windows_identity_not_supported");
210await WriteRefreshErrorAsync(context, StatusCodes.Status403Forbidden, "permission_change_rejected");
502if (context.Response.StatusCode == StatusCodes.Status204NoContent)
710context.Response.StatusCode = StatusCodes.Status405MethodNotAllowed;
731context.Response.StatusCode = StatusCodes.Status404NotFound;
749context.Response.StatusCode = StatusCodes.Status404NotFound;
758context.Response.StatusCode = StatusCodes.Status404NotFound;
775context.Response.StatusCode = StatusCodes.Status400BadRequest;
807context.Response.StatusCode = StatusCodes.Status400BadRequest;
823context.Response.StatusCode = StatusCodes.Status202Accepted;
832context.Response.StatusCode = StatusCodes.Status404NotFound;
847context.Response.StatusCode = StatusCodes.Status409Conflict;
853context.Response.StatusCode = StatusCodes.Status400BadRequest;
988await WriteRefreshErrorAsync(context, StatusCodes.Status403Forbidden, "permission_change_rejected");
1190context.Response.StatusCode = StatusCodes.Status403Forbidden;
1220context.Response.StatusCode = StatusCodes.Status400BadRequest;
1230context.Response.StatusCode = StatusCodes.Status404NotFound;
1254context.Response.StatusCode = StatusCodes.Status404NotFound;
Microsoft.AspNetCore.Http.Extensions (17)
Microsoft.AspNetCore.Http.Results (341)
Results.cs (66)
31/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/>
47/// By default, executing this result returns a <see cref="StatusCodes.Status403Forbidden"/>. Some authentication schemes, such as cookies,
48/// will convert <see cref="StatusCodes.Status403Forbidden"/> to a redirect to show a login page.
56/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to
281/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
282/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
306/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
307/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
331/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
332/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
354/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
355/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
385/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
386/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
416/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
417/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
463/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
464/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
489/// <description>When <paramref name="permanent"/> and <paramref name="preserveMethod"/> are set, sets the <see cref="StatusCodes.Status308PermanentRedirect"/> status code.</description>
492/// <description>When <paramref name="preserveMethod"/> is set, sets the <see cref="StatusCodes.Status307TemporaryRedirect"/> status code.</description>
495/// <description>When <paramref name="permanent"/> is set, sets the <see cref="StatusCodes.Status301MovedPermanently"/> status code.</description>
498/// <description>Otherwise, configures <see cref="StatusCodes.Status302Found"/>.</description>
513/// <description>When <paramref name="permanent"/> and <paramref name="preserveMethod"/> are set, sets the <see cref="StatusCodes.Status308PermanentRedirect"/> status code.</description>
516/// <description>When <paramref name="preserveMethod"/> is set, sets the <see cref="StatusCodes.Status307TemporaryRedirect"/> status code.</description>
519/// <description>When <paramref name="permanent"/> is set, sets the <see cref="StatusCodes.Status301MovedPermanently"/> status code.</description>
522/// <description>Otherwise, configures <see cref="StatusCodes.Status302Found"/>.</description>
537/// <description>When <paramref name="permanent"/> and <paramref name="preserveMethod"/> are set, sets the <see cref="StatusCodes.Status308PermanentRedirect"/> status code.</description>
540/// <description>When <paramref name="preserveMethod"/> is set, sets the <see cref="StatusCodes.Status307TemporaryRedirect"/> status code.</description>
543/// <description>When <paramref name="permanent"/> is set, sets the <see cref="StatusCodes.Status301MovedPermanently"/> status code.</description>
546/// <description>Otherwise, configures <see cref="StatusCodes.Status302Found"/>.</description>
564/// <description>When <paramref name="permanent"/> and <paramref name="preserveMethod"/> are set, sets the <see cref="StatusCodes.Status308PermanentRedirect"/> status code.</description>
567/// <description>When <paramref name="preserveMethod"/> is set, sets the <see cref="StatusCodes.Status307TemporaryRedirect"/> status code.</description>
570/// <description>When <paramref name="permanent"/> is set, sets the <see cref="StatusCodes.Status301MovedPermanently"/> status code.</description>
573/// <description>Otherwise, configures <see cref="StatusCodes.Status302Found"/>.</description>
597/// Produces a <see cref="StatusCodes.Status404NotFound"/> response.
605/// Produces a <see cref="StatusCodes.Status404NotFound"/> response.
613/// Produces a <see cref="StatusCodes.Status401Unauthorized"/> response.
620/// Produces a <see cref="StatusCodes.Status400BadRequest"/> response.
628/// Produces a <see cref="StatusCodes.Status400BadRequest"/> response.
636/// Produces a <see cref="StatusCodes.Status409Conflict"/> response.
644/// Produces a <see cref="StatusCodes.Status409Conflict"/> response.
652/// Produces a <see cref="StatusCodes.Status204NoContent"/> response.
659/// Produces a <see cref="StatusCodes.Status200OK"/> response.
667/// Produces a <see cref="StatusCodes.Status200OK"/> response.
675/// Produces a <see cref="StatusCodes.Status422UnprocessableEntity"/> response.
683/// Produces a <see cref="StatusCodes.Status422UnprocessableEntity"/> response.
691/// Produces a <see cref="StatusCodes.Status500InternalServerError"/> response.
698/// Produces a <see cref="StatusCodes.Status500InternalServerError"/> response.
754/// Produces a <see cref="StatusCodes.Status400BadRequest"/> response
778/// Produces a <see cref="StatusCodes.Status400BadRequest"/> response
832/// Produces a <see cref="StatusCodes.Status201Created"/> response.
839/// Produces a <see cref="StatusCodes.Status201Created"/> response.
848/// Produces a <see cref="StatusCodes.Status201Created"/> response.
857/// Produces a <see cref="StatusCodes.Status201Created"/> response.
866/// Produces a <see cref="StatusCodes.Status201Created"/> response.
875/// Produces a <see cref="StatusCodes.Status201Created"/> response.
886/// Produces a <see cref="StatusCodes.Status201Created"/> response.
898/// Produces a <see cref="StatusCodes.Status201Created"/> response.
909/// Produces a <see cref="StatusCodes.Status201Created"/> response.
921/// Produces a <see cref="StatusCodes.Status202Accepted"/> response.
930/// Produces a <see cref="StatusCodes.Status202Accepted"/> response.
939/// Produces a <see cref="StatusCodes.Status202Accepted"/> response.
950/// Produces a <see cref="StatusCodes.Status202Accepted"/> response.
962/// Produces a <see cref="StatusCodes.Status202Accepted"/> response.
973/// Produces a <see cref="StatusCodes.Status202Accepted"/> response.
ResultsCache.StatusCodes.cs (122)
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),
TypedResults.cs (70)
31/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/>
47/// By default, executing this result returns a <see cref="StatusCodes.Status403Forbidden"/>. Some authentication schemes, such as cookies,
48/// will convert <see cref="StatusCodes.Status403Forbidden"/> to a redirect to show a login page.
52/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to
245/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
246/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
280/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
281/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
315/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
316/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
344/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
345/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
385/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
386/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
426/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
427/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
492/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
493/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
525/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
526/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
558/// <item><description>When <paramref name="permanent"/> and <paramref name="preserveMethod"/> are set, sets the <see cref="StatusCodes.Status308PermanentRedirect"/> status code.</description></item>
559/// <item><description>When <paramref name="preserveMethod"/> is set, sets the <see cref="StatusCodes.Status307TemporaryRedirect"/> status code.</description></item>
560/// <item><description>When <paramref name="permanent"/> is set, sets the <see cref="StatusCodes.Status301MovedPermanently"/> status code.</description></item>
561/// <item>Otherwise, configures <see cref="StatusCodes.Status302Found"/>.</item>
578/// <item><description>When <paramref name="permanent"/> and <paramref name="preserveMethod"/> are set, sets the <see cref="StatusCodes.Status308PermanentRedirect"/> status code.</description></item>
579/// <item><description>When <paramref name="preserveMethod"/> is set, sets the <see cref="StatusCodes.Status307TemporaryRedirect"/> status code.</description></item>
580/// <item><description>When <paramref name="permanent"/> is set, sets the <see cref="StatusCodes.Status301MovedPermanently"/> status code.</description></item>
581/// <item>Otherwise, configures <see cref="StatusCodes.Status302Found"/>.</item>
598/// <item><description>When <paramref name="permanent"/> and <paramref name="preserveMethod"/> are set, sets the <see cref="StatusCodes.Status308PermanentRedirect"/> status code.</description></item>
599/// <item><description>When <paramref name="preserveMethod"/> is set, sets the <see cref="StatusCodes.Status307TemporaryRedirect"/> status code.</description></item>
600/// <item><description>When <paramref name="permanent"/> is set, sets the <see cref="StatusCodes.Status301MovedPermanently"/> status code.</description></item>
601/// <item><description>Otherwise, configures <see cref="StatusCodes.Status302Found"/>.</description></item>
622/// <item><description>When <paramref name="permanent"/> and <paramref name="preserveMethod"/> are set, sets the <see cref="StatusCodes.Status308PermanentRedirect"/> status code.</description></item>
623/// <item><description>When <paramref name="preserveMethod"/> is set, sets the <see cref="StatusCodes.Status307TemporaryRedirect"/> status code.</description></item>
624/// <item><description>When <paramref name="permanent"/> is set, sets the <see cref="StatusCodes.Status301MovedPermanently"/> status code.</description></item>
625/// <item><description>Otherwise, configures <see cref="StatusCodes.Status302Found"/>.</description></item>
653/// Produces a <see cref="StatusCodes.Status404NotFound"/> response.
659/// Produces a <see cref="StatusCodes.Status404NotFound"/> response.
667/// Produces a <see cref="StatusCodes.Status401Unauthorized"/> response.
673/// Produces a <see cref="StatusCodes.Status400BadRequest"/> response.
679/// Produces a <see cref="StatusCodes.Status400BadRequest"/> response.
687/// Produces a <see cref="StatusCodes.Status409Conflict"/> response.
693/// Produces a <see cref="StatusCodes.Status409Conflict"/> response.
701/// Produces a <see cref="StatusCodes.Status204NoContent"/> response.
707/// Produces a <see cref="StatusCodes.Status200OK"/> response.
713/// Produces a <see cref="StatusCodes.Status200OK"/> response.
721/// Produces a <see cref="StatusCodes.Status422UnprocessableEntity"/> response.
727/// Produces a <see cref="StatusCodes.Status422UnprocessableEntity"/> response.
735/// Produces a <see cref="StatusCodes.Status500InternalServerError"/> response.
741/// Produces a <see cref="StatusCodes.Status500InternalServerError"/> response.
816/// Produces a <see cref="StatusCodes.Status400BadRequest"/> response with an <see cref="HttpValidationProblemDetails"/> value.
837/// Produces a <see cref="StatusCodes.Status400BadRequest"/> response with an <see cref="HttpValidationProblemDetails"/> value.
886/// Produces a <see cref="StatusCodes.Status201Created"/> response.
895/// Produces a <see cref="StatusCodes.Status201Created"/> response.
905/// Produces a <see cref="StatusCodes.Status201Created"/> response.
917/// Produces a <see cref="StatusCodes.Status201Created"/> response.
927/// Produces a <see cref="StatusCodes.Status201Created"/> response.
939/// Produces a <see cref="StatusCodes.Status201Created"/> response.
951/// Produces a <see cref="StatusCodes.Status201Created"/> response.
960/// Produces a <see cref="StatusCodes.Status201Created"/> response.
974/// Produces a <see cref="StatusCodes.Status201Created"/> response.
985/// Produces a <see cref="StatusCodes.Status202Accepted"/> response.
993/// Produces a <see cref="StatusCodes.Status202Accepted"/> response.
1003/// Produces a <see cref="StatusCodes.Status202Accepted"/> response.
1015/// Produces a <see cref="StatusCodes.Status202Accepted"/> response.
1029/// Produces a <see cref="StatusCodes.Status202Accepted"/> response.
1041/// Produces a <see cref="StatusCodes.Status202Accepted"/> response.
1050/// Produces a <see cref="StatusCodes.Status202Accepted"/> response.
1064/// Produces a <see cref="StatusCodes.Status202Accepted"/> response.
Microsoft.AspNetCore.HttpsPolicy (1)
Microsoft.AspNetCore.Identity (8)
Microsoft.AspNetCore.Mvc.ApiExplorer (6)
Microsoft.AspNetCore.Mvc.Core (278)
ControllerBase.cs (212)
296/// <see cref="StatusCodes.Status204NoContent"/> response.
304/// Creates an <see cref="OkResult"/> object that produces an empty <see cref="StatusCodes.Status200OK"/> response.
312/// Creates an <see cref="OkObjectResult"/> object that produces a <see cref="StatusCodes.Status200OK"/> response.
322/// Creates a <see cref="RedirectResult"/> object that redirects (<see cref="StatusCodes.Status302Found"/>)
337/// (<see cref="StatusCodes.Status301MovedPermanently"/>) using the specified <paramref name="url"/>.
351/// and <see cref="RedirectResult.PreserveMethod"/> set to true (<see cref="StatusCodes.Status307TemporaryRedirect"/>)
366/// and <see cref="RedirectResult.PreserveMethod"/> set to true (<see cref="StatusCodes.Status308PermanentRedirect"/>)
381/// (<see cref="StatusCodes.Status302Found"/>) to the specified local <paramref name="localUrl"/>.
395/// true (<see cref="StatusCodes.Status301MovedPermanently"/>) using the specified <paramref name="localUrl"/>.
410/// (<see cref="StatusCodes.Status307TemporaryRedirect"/>) using the specified <paramref name="localUrl"/>.
425/// (<see cref="StatusCodes.Status308PermanentRedirect"/>) using the specified <paramref name="localUrl"/>.
438/// Redirects (<see cref="StatusCodes.Status302Found"/>) to an action with the same name as current one.
466/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the <paramref name="actionName"/>.
475/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the
486/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the
497/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the specified
512/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the specified
527/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the specified <paramref name="actionName"/>,
549/// Redirects (<see cref="StatusCodes.Status307TemporaryRedirect"/>) to the specified action with
579/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
589/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
601/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
613/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
629/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
645/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
673/// Redirects (<see cref="StatusCodes.Status308PermanentRedirect"/>) to the specified action with
703/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified <paramref name="routeName"/>.
712/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified <paramref name="routeValues"/>.
721/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified
732/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified
743/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified
763/// Redirects (<see cref="StatusCodes.Status307TemporaryRedirect"/>) to the specified route with
789/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified route with
799/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified route with
809/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified route with
821/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified route with
833/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified route with
854/// Redirects (<see cref="StatusCodes.Status308PermanentRedirect"/>) to the specified route with
880/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>.
889/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>
900/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>
911/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>.
922/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>
934/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>
947/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified <paramref name="pageName"/>.
956/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified <paramref name="pageName"/>
967/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified <paramref name="pageName"/>
978/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified <paramref name="pageName"/>
990/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified <paramref name="pageName"/>
1007/// Redirects (<see cref="StatusCodes.Status307TemporaryRedirect"/>) to the specified page with
1035/// Redirects (<see cref="StatusCodes.Status308PermanentRedirect"/>) to the specified route with
1065/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>),
1067/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1068/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1078/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>),
1080/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1081/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1092/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>), the
1094/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1095/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1106/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>), the
1108/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1109/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1125/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>),
1127/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1128/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1146/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>),
1148/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1149/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1169/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>), the
1171/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1172/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1192/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>), the
1194/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1195/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1217/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>), with the
1219/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1220/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1233/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>), with the
1235/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1236/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1250/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>) with the
1253/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1254/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1268/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>) with the
1271/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1272/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1291/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>),
1293/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1294/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1315/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>),
1317/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1318/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1341/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>), the
1343/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1344/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1367/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>), the
1369/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1370/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1395/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
1397/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1398/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1408/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
1410/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1411/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1422/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
1425/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1426/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1437/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
1440/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1441/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1457/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>), and the
1459/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1460/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1478/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>), and the
1480/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1481/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1501/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>), the
1503/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1504/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1524/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>), the
1526/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1527/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1549/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
1551/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1552/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1562/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
1564/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1565/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1576/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
1579/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1580/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1594/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
1597/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1598/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1618/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>), and
1620/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1621/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1639/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>), and
1641/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1642/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1662/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>), the
1664/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1665/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1685/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>), the
1687/// This supports range requests (<see cref="StatusCodes.Status206PartialContent"/> or
1688/// <see cref="StatusCodes.Status416RangeNotSatisfiable"/> if the range is not satisfiable).
1711/// Creates an <see cref="UnauthorizedResult"/> that produces a <see cref="StatusCodes.Status401Unauthorized"/> response.
1719/// Creates an <see cref="UnauthorizedObjectResult"/> that produces a <see cref="StatusCodes.Status401Unauthorized"/> response.
1727/// Creates a <see cref="NotFoundResult"/> that produces a <see cref="StatusCodes.Status404NotFound"/> response.
1735/// Creates a <see cref="NotFoundObjectResult"/> that produces a <see cref="StatusCodes.Status404NotFound"/> response.
1743/// Creates a <see cref="BadRequestResult"/> that produces a <see cref="StatusCodes.Status400BadRequest"/> response.
1751/// Creates a <see cref="BadRequestObjectResult"/> that produces a <see cref="StatusCodes.Status400BadRequest"/> response.
1760/// Creates a <see cref="BadRequestObjectResult"/> that produces a <see cref="StatusCodes.Status400BadRequest"/> response.
1773/// Creates an <see cref="UnprocessableEntityResult"/> that produces a <see cref="StatusCodes.Status422UnprocessableEntity"/> response.
1781/// Creates an <see cref="UnprocessableEntityObjectResult"/> that produces a <see cref="StatusCodes.Status422UnprocessableEntity"/> response.
1790/// Creates an <see cref="UnprocessableEntityObjectResult"/> that produces a <see cref="StatusCodes.Status422UnprocessableEntity"/> response.
1803/// Creates a <see cref="ConflictResult"/> that produces a <see cref="StatusCodes.Status409Conflict"/> response.
1811/// Creates a <see cref="ConflictObjectResult"/> that produces a <see cref="StatusCodes.Status409Conflict"/> response.
1820/// Creates a <see cref="ConflictObjectResult"/> that produces a <see cref="StatusCodes.Status409Conflict"/> response.
1907/// Creates a <see cref="BadRequestObjectResult"/> that produces a <see cref="StatusCodes.Status400BadRequest"/> response.
1911[DefaultStatusCode(StatusCodes.Status400BadRequest)]
1920/// Creates an <see cref="ActionResult"/> that produces a <see cref="StatusCodes.Status400BadRequest"/> response
1926[DefaultStatusCode(StatusCodes.Status400BadRequest)]
1931/// Creates an <see cref="ActionResult"/> that produces a <see cref="StatusCodes.Status400BadRequest"/> response
1936[DefaultStatusCode(StatusCodes.Status400BadRequest)]
1941/// Creates an <see cref="ActionResult"/> that produces a <see cref="StatusCodes.Status400BadRequest"/> response
1954[DefaultStatusCode(StatusCodes.Status400BadRequest)]
1965/// Creates an <see cref="ActionResult"/> that produces a <see cref="StatusCodes.Status400BadRequest"/> response
1978[DefaultStatusCode(StatusCodes.Status400BadRequest)]
2038/// Creates a <see cref="CreatedResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response.
2048/// Creates a <see cref="CreatedResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response.
2060/// Creates a <see cref="CreatedResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response.
2072/// Creates a <see cref="CreatedAtActionResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response.
2082/// Creates a <see cref="CreatedAtActionResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response.
2093/// Creates a <see cref="CreatedAtActionResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response.
2109/// Creates a <see cref="CreatedAtRouteResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response.
2119/// Creates a <see cref="CreatedAtRouteResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response.
2129/// Creates a <see cref="CreatedAtRouteResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response.
2140/// Creates an <see cref="AcceptedResult"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response.
2148/// Creates an <see cref="AcceptedResult"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response.
2157/// Creates an <see cref="AcceptedResult"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response.
2171/// Creates an <see cref="AcceptedResult"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response.
2181/// Creates an <see cref="AcceptedResult"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response.
2191/// Creates an <see cref="AcceptedResult"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response.
2205/// Creates an <see cref="AcceptedAtActionResult"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response.
2214/// Creates an <see cref="AcceptedAtActionResult"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response.
2224/// Creates an <see cref="AcceptedAtActionResult"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response.
2234/// Creates an <see cref="AcceptedAtActionResult"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response.
2245/// Creates an <see cref="AcceptedAtActionResult"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response.
2256/// Creates an <see cref="AcceptedAtActionResult"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response.
2272/// Creates an <see cref="AcceptedAtRouteResult"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response.
2281/// Creates an <see cref="AcceptedAtRouteResult"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response.
2290/// Creates an <see cref="AcceptedAtRouteResult"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response.
2300/// Creates an <see cref="AcceptedAtRouteResult"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response.
2310/// Creates an <see cref="AcceptedAtRouteResult"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response.
2326/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/>
2340/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/>
2355/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/>
2372/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/>
2382/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default).
2386/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to
2394/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default) with the
2400/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to
2408/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default) with the
2415/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to
2423/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default) with the
2431/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to
Microsoft.AspNetCore.Mvc.Cors (2)
Microsoft.AspNetCore.Mvc.RazorPages (167)
PageBase.cs (82)
124/// Creates a <see cref="BadRequestResult"/> that produces a <see cref="StatusCodes.Status400BadRequest"/> response.
131/// Creates a <see cref="BadRequestObjectResult"/> that produces a <see cref="StatusCodes.Status400BadRequest"/> response.
139/// Creates a <see cref="BadRequestObjectResult"/> that produces a <see cref="StatusCodes.Status400BadRequest"/> response.
156/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/>
169/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/>
183/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/>
199/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/>
208/// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a
217/// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a
227/// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a
246/// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a
262/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default).
266/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to
273/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default) with the
279/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to
286/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default) with the
293/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to
300/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default) with the
308/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to
316/// (<see cref="StatusCodes.Status200OK"/>) and the specified <paramref name="contentType" /> as the Content-Type.
325/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>), the
337/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>)
347/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>) with the
359/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
369/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
381/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
391/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
407/// (<see cref="StatusCodes.Status302Found"/>) to the specified local <paramref name="localUrl"/>.
420/// true (<see cref="StatusCodes.Status301MovedPermanently"/>) using the specified <paramref name="localUrl"/>.
434/// (<see cref="StatusCodes.Status307TemporaryRedirect"/>) using the specified <paramref name="localUrl"/>.
448/// (<see cref="StatusCodes.Status308PermanentRedirect"/>) using the specified <paramref name="localUrl"/>.
460/// Creates an <see cref="NotFoundResult"/> that produces a <see cref="StatusCodes.Status404NotFound"/> response.
467/// Creates an <see cref="NotFoundObjectResult"/> that produces a <see cref="StatusCodes.Status404NotFound"/> response.
497/// (<see cref="StatusCodes.Status301MovedPermanently"/>) using the specified <paramref name="url"/>.
510/// and <see cref="RedirectResult.PreserveMethod"/> set to true (<see cref="StatusCodes.Status307TemporaryRedirect"/>)
524/// and <see cref="RedirectResult.PreserveMethod"/> set to true (<see cref="StatusCodes.Status308PermanentRedirect"/>)
537/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the <paramref name="actionName"/>.
545/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the
555/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the
565/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the specified
579/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the specified
593/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the specified <paramref name="actionName"/>,
609/// Redirects (<see cref="StatusCodes.Status307TemporaryRedirect"/>) to the specified action with
635/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
646/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
659/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
672/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
689/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
706/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
730/// Redirects (<see cref="StatusCodes.Status308PermanentRedirect"/>) to the specified action with
756/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified <paramref name="routeName"/>.
766/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified <paramref name="routeValues"/>.
776/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified
788/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified
800/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified
816/// Redirects (<see cref="StatusCodes.Status307TemporaryRedirect"/>) to the specified route with
838/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified route with
849/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified route with
860/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified route with
873/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified route with
886/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified route with
901/// Redirects (<see cref="StatusCodes.Status308PermanentRedirect"/>) to the specified route with
923/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the current page.
930/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the current page with the specified <paramref name="routeValues"/>.
938/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>.
946/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>
956/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>
966/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>
977/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>
989/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified <paramref name="pageName"/>.
997/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified <paramref name="pageName"/>
1007/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified <paramref name="pageName"/>
1017/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified <paramref name="pageName"/>
1028/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified <paramref name="pageName"/>
1039/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified <paramref name="pageName"/>
1051/// Redirects (<see cref="StatusCodes.Status307TemporaryRedirect"/>) to the specified page with
1076/// Redirects (<see cref="StatusCodes.Status308PermanentRedirect"/>) to the specified route with
1159/// Creates an <see cref="UnauthorizedResult"/> that produces an <see cref="StatusCodes.Status401Unauthorized"/> response.
PageModel.cs (85)
456/// Creates a <see cref="BadRequestResult"/> that produces a <see cref="StatusCodes.Status400BadRequest"/> response.
463/// Creates a <see cref="BadRequestObjectResult"/> that produces a <see cref="StatusCodes.Status400BadRequest"/> response.
471/// Creates a <see cref="BadRequestObjectResult"/> that produces a <see cref="StatusCodes.Status400BadRequest"/> response.
488/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/>
501/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/>
515/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/>
531/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/>
540/// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a
549/// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a
559/// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a
578/// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a
594/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default).
598/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to
605/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default) with the
611/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to
618/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default) with the
625/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to
632/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default) with the
640/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to
648/// (<see cref="StatusCodes.Status200OK"/>) and the specified <paramref name="contentType" /> as the Content-Type.
657/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>), the
669/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>)
679/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>) with the
691/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
701/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
714/// (<see cref="StatusCodes.Status302Found"/>) to the specified local <paramref name="localUrl"/>.
727/// true (<see cref="StatusCodes.Status301MovedPermanently"/>) using the specified <paramref name="localUrl"/>.
741/// (<see cref="StatusCodes.Status307TemporaryRedirect"/>) using the specified <paramref name="localUrl"/>.
755/// (<see cref="StatusCodes.Status308PermanentRedirect"/>) using the specified <paramref name="localUrl"/>.
767/// Creates an <see cref="NotFoundResult"/> that produces a <see cref="StatusCodes.Status404NotFound"/> response.
774/// Creates an <see cref="NotFoundObjectResult"/> that produces a <see cref="StatusCodes.Status404NotFound"/> response.
787/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
797/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
812/// Creates a <see cref="RedirectResult"/> object that redirects (<see cref="StatusCodes.Status302Found"/>)
826/// (<see cref="StatusCodes.Status301MovedPermanently"/>) using the specified <paramref name="url"/>.
839/// and <see cref="RedirectResult.PreserveMethod"/> set to true (<see cref="StatusCodes.Status307TemporaryRedirect"/>)
853/// and <see cref="RedirectResult.PreserveMethod"/> set to true (<see cref="StatusCodes.Status308PermanentRedirect"/>)
866/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the <paramref name="actionName"/>.
874/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the
884/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the
894/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the specified
908/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the specified
922/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the specified <paramref name="actionName"/>,
943/// Redirects (<see cref="StatusCodes.Status307TemporaryRedirect"/>) to the specified action with
972/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
981/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
992/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
1003/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
1018/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
1033/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
1060/// Redirects (<see cref="StatusCodes.Status308PermanentRedirect"/>) to the specified action with
1089/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified <paramref name="routeName"/>.
1097/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified <paramref name="routeValues"/>.
1105/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified
1115/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified
1125/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified
1144/// Redirects (<see cref="StatusCodes.Status307TemporaryRedirect"/>) to the specified route with
1169/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified route with
1178/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified route with
1187/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified route with
1198/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified route with
1209/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified route with
1229/// Redirects (<see cref="StatusCodes.Status308PermanentRedirect"/>) to the specified route with
1254/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the current page.
1261/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the current page with the specified <paramref name="routeValues"/>.
1269/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>.
1277/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>
1287/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>
1298/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>
1308/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>
1319/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>
1331/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified <paramref name="pageName"/>.
1339/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified <paramref name="pageName"/>
1349/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified <paramref name="pageName"/>.
1358/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified <paramref name="pageName"/>
1369/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified <paramref name="pageName"/>
1380/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified <paramref name="pageName"/>
1391/// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified <paramref name="pageName"/>
1403/// Redirects (<see cref="StatusCodes.Status307TemporaryRedirect"/>) to the specified page with
1428/// Redirects (<see cref="StatusCodes.Status308PermanentRedirect"/>) to the specified route with
1516/// Creates an <see cref="UnauthorizedResult"/> that produces an <see cref="StatusCodes.Status401Unauthorized"/> response.
Microsoft.AspNetCore.OpenApi (12)
Microsoft.AspNetCore.OutputCaching (3)
Microsoft.AspNetCore.RateLimiting (2)
Microsoft.AspNetCore.RequestDecompression (1)
Microsoft.AspNetCore.ResponseCaching (3)
Microsoft.AspNetCore.Rewrite (18)
RewriteOptionsExtensions.cs (11)
62return AddRedirect(options, regex, replacement, statusCode: StatusCodes.Status302Found);
87return AddRedirectToHttps(options, statusCode: StatusCodes.Status301MovedPermanently, sslPort: null);
96return AddRedirectToHttps(options, statusCode: StatusCodes.Status302Found, sslPort: null);
128return AddRedirectToWww(options, statusCode: StatusCodes.Status308PermanentRedirect);
139return AddRedirectToWww(options, statusCode: StatusCodes.Status308PermanentRedirect, domains);
148return AddRedirectToWww(options, statusCode: StatusCodes.Status307TemporaryRedirect);
158return AddRedirectToWww(options, statusCode: StatusCodes.Status307TemporaryRedirect, domains);
191return AddRedirectToNonWww(options, statusCode: StatusCodes.Status308PermanentRedirect);
202return AddRedirectToNonWww(options, statusCode: StatusCodes.Status308PermanentRedirect, domains);
211return AddRedirectToNonWww(options, statusCode: StatusCodes.Status307TemporaryRedirect);
221return AddRedirectToNonWww(options, statusCode: StatusCodes.Status307TemporaryRedirect, domains);
Microsoft.AspNetCore.Routing (11)
Microsoft.AspNetCore.Server.HttpSys (12)
Microsoft.AspNetCore.Server.IIS (6)
Microsoft.AspNetCore.Server.IISIntegration (2)
Microsoft.AspNetCore.Server.Kestrel.Core (180)
Internal\Http\ReasonPhrases.cs (126)
13private static readonly byte[] _bytesStatus100 = CreateStatusBytes(StatusCodes.Status100Continue);
14private static readonly byte[] _bytesStatus101 = CreateStatusBytes(StatusCodes.Status101SwitchingProtocols);
15private static readonly byte[] _bytesStatus102 = CreateStatusBytes(StatusCodes.Status102Processing);
17private static readonly byte[] _bytesStatus200 = CreateStatusBytes(StatusCodes.Status200OK);
18private static readonly byte[] _bytesStatus201 = CreateStatusBytes(StatusCodes.Status201Created);
19private static readonly byte[] _bytesStatus202 = CreateStatusBytes(StatusCodes.Status202Accepted);
20private static readonly byte[] _bytesStatus203 = CreateStatusBytes(StatusCodes.Status203NonAuthoritative);
21private static readonly byte[] _bytesStatus204 = CreateStatusBytes(StatusCodes.Status204NoContent);
22private static readonly byte[] _bytesStatus205 = CreateStatusBytes(StatusCodes.Status205ResetContent);
23private static readonly byte[] _bytesStatus206 = CreateStatusBytes(StatusCodes.Status206PartialContent);
24private static readonly byte[] _bytesStatus207 = CreateStatusBytes(StatusCodes.Status207MultiStatus);
25private static readonly byte[] _bytesStatus208 = CreateStatusBytes(StatusCodes.Status208AlreadyReported);
26private static readonly byte[] _bytesStatus226 = CreateStatusBytes(StatusCodes.Status226IMUsed);
28private static readonly byte[] _bytesStatus300 = CreateStatusBytes(StatusCodes.Status300MultipleChoices);
29private static readonly byte[] _bytesStatus301 = CreateStatusBytes(StatusCodes.Status301MovedPermanently);
30private static readonly byte[] _bytesStatus302 = CreateStatusBytes(StatusCodes.Status302Found);
31private static readonly byte[] _bytesStatus303 = CreateStatusBytes(StatusCodes.Status303SeeOther);
32private static readonly byte[] _bytesStatus304 = CreateStatusBytes(StatusCodes.Status304NotModified);
33private static readonly byte[] _bytesStatus305 = CreateStatusBytes(StatusCodes.Status305UseProxy);
34private static readonly byte[] _bytesStatus306 = CreateStatusBytes(StatusCodes.Status306SwitchProxy);
35private static readonly byte[] _bytesStatus307 = CreateStatusBytes(StatusCodes.Status307TemporaryRedirect);
36private static readonly byte[] _bytesStatus308 = CreateStatusBytes(StatusCodes.Status308PermanentRedirect);
38private static readonly byte[] _bytesStatus400 = CreateStatusBytes(StatusCodes.Status400BadRequest);
39private static readonly byte[] _bytesStatus401 = CreateStatusBytes(StatusCodes.Status401Unauthorized);
40private static readonly byte[] _bytesStatus402 = CreateStatusBytes(StatusCodes.Status402PaymentRequired);
41private static readonly byte[] _bytesStatus403 = CreateStatusBytes(StatusCodes.Status403Forbidden);
42private static readonly byte[] _bytesStatus404 = CreateStatusBytes(StatusCodes.Status404NotFound);
43private static readonly byte[] _bytesStatus405 = CreateStatusBytes(StatusCodes.Status405MethodNotAllowed);
44private static readonly byte[] _bytesStatus406 = CreateStatusBytes(StatusCodes.Status406NotAcceptable);
45private static readonly byte[] _bytesStatus407 = CreateStatusBytes(StatusCodes.Status407ProxyAuthenticationRequired);
46private static readonly byte[] _bytesStatus408 = CreateStatusBytes(StatusCodes.Status408RequestTimeout);
47private static readonly byte[] _bytesStatus409 = CreateStatusBytes(StatusCodes.Status409Conflict);
48private static readonly byte[] _bytesStatus410 = CreateStatusBytes(StatusCodes.Status410Gone);
49private static readonly byte[] _bytesStatus411 = CreateStatusBytes(StatusCodes.Status411LengthRequired);
50private static readonly byte[] _bytesStatus412 = CreateStatusBytes(StatusCodes.Status412PreconditionFailed);
51private static readonly byte[] _bytesStatus413 = CreateStatusBytes(StatusCodes.Status413PayloadTooLarge);
52private static readonly byte[] _bytesStatus414 = CreateStatusBytes(StatusCodes.Status414UriTooLong);
53private static readonly byte[] _bytesStatus415 = CreateStatusBytes(StatusCodes.Status415UnsupportedMediaType);
54private static readonly byte[] _bytesStatus416 = CreateStatusBytes(StatusCodes.Status416RangeNotSatisfiable);
55private static readonly byte[] _bytesStatus417 = CreateStatusBytes(StatusCodes.Status417ExpectationFailed);
56private static readonly byte[] _bytesStatus418 = CreateStatusBytes(StatusCodes.Status418ImATeapot);
57private static readonly byte[] _bytesStatus419 = CreateStatusBytes(StatusCodes.Status419AuthenticationTimeout);
58private static readonly byte[] _bytesStatus421 = CreateStatusBytes(StatusCodes.Status421MisdirectedRequest);
59private static readonly byte[] _bytesStatus422 = CreateStatusBytes(StatusCodes.Status422UnprocessableEntity);
60private static readonly byte[] _bytesStatus423 = CreateStatusBytes(StatusCodes.Status423Locked);
61private static readonly byte[] _bytesStatus424 = CreateStatusBytes(StatusCodes.Status424FailedDependency);
62private static readonly byte[] _bytesStatus426 = CreateStatusBytes(StatusCodes.Status426UpgradeRequired);
63private static readonly byte[] _bytesStatus428 = CreateStatusBytes(StatusCodes.Status428PreconditionRequired);
64private static readonly byte[] _bytesStatus429 = CreateStatusBytes(StatusCodes.Status429TooManyRequests);
65private static readonly byte[] _bytesStatus431 = CreateStatusBytes(StatusCodes.Status431RequestHeaderFieldsTooLarge);
66private static readonly byte[] _bytesStatus451 = CreateStatusBytes(StatusCodes.Status451UnavailableForLegalReasons);
67private static readonly byte[] _bytesStatus499 = CreateStatusBytes(StatusCodes.Status499ClientClosedRequest);
69private static readonly byte[] _bytesStatus500 = CreateStatusBytes(StatusCodes.Status500InternalServerError);
70private static readonly byte[] _bytesStatus501 = CreateStatusBytes(StatusCodes.Status501NotImplemented);
71private static readonly byte[] _bytesStatus502 = CreateStatusBytes(StatusCodes.Status502BadGateway);
72private static readonly byte[] _bytesStatus503 = CreateStatusBytes(StatusCodes.Status503ServiceUnavailable);
73private static readonly byte[] _bytesStatus504 = CreateStatusBytes(StatusCodes.Status504GatewayTimeout);
74private static readonly byte[] _bytesStatus505 = CreateStatusBytes(StatusCodes.Status505HttpVersionNotsupported);
75private static readonly byte[] _bytesStatus506 = CreateStatusBytes(StatusCodes.Status506VariantAlsoNegotiates);
76private static readonly byte[] _bytesStatus507 = CreateStatusBytes(StatusCodes.Status507InsufficientStorage);
77private static readonly byte[] _bytesStatus508 = CreateStatusBytes(StatusCodes.Status508LoopDetected);
78private static readonly byte[] _bytesStatus510 = CreateStatusBytes(StatusCodes.Status510NotExtended);
79private static readonly byte[] _bytesStatus511 = CreateStatusBytes(StatusCodes.Status511NetworkAuthenticationRequired);
99StatusCodes.Status100Continue => _bytesStatus100,
100StatusCodes.Status101SwitchingProtocols => _bytesStatus101,
101StatusCodes.Status102Processing => _bytesStatus102,
103StatusCodes.Status200OK => _bytesStatus200,
104StatusCodes.Status201Created => _bytesStatus201,
105StatusCodes.Status202Accepted => _bytesStatus202,
106StatusCodes.Status203NonAuthoritative => _bytesStatus203,
107StatusCodes.Status204NoContent => _bytesStatus204,
108StatusCodes.Status205ResetContent => _bytesStatus205,
109StatusCodes.Status206PartialContent => _bytesStatus206,
110StatusCodes.Status207MultiStatus => _bytesStatus207,
111StatusCodes.Status208AlreadyReported => _bytesStatus208,
112StatusCodes.Status226IMUsed => _bytesStatus226,
114StatusCodes.Status300MultipleChoices => _bytesStatus300,
115StatusCodes.Status301MovedPermanently => _bytesStatus301,
116StatusCodes.Status302Found => _bytesStatus302,
117StatusCodes.Status303SeeOther => _bytesStatus303,
118StatusCodes.Status304NotModified => _bytesStatus304,
119StatusCodes.Status305UseProxy => _bytesStatus305,
120StatusCodes.Status306SwitchProxy => _bytesStatus306,
121StatusCodes.Status307TemporaryRedirect => _bytesStatus307,
122StatusCodes.Status308PermanentRedirect => _bytesStatus308,
124StatusCodes.Status400BadRequest => _bytesStatus400,
125StatusCodes.Status401Unauthorized => _bytesStatus401,
126StatusCodes.Status402PaymentRequired => _bytesStatus402,
127StatusCodes.Status403Forbidden => _bytesStatus403,
128StatusCodes.Status404NotFound => _bytesStatus404,
129StatusCodes.Status405MethodNotAllowed => _bytesStatus405,
130StatusCodes.Status406NotAcceptable => _bytesStatus406,
131StatusCodes.Status407ProxyAuthenticationRequired => _bytesStatus407,
132StatusCodes.Status408RequestTimeout => _bytesStatus408,
133StatusCodes.Status409Conflict => _bytesStatus409,
134StatusCodes.Status410Gone => _bytesStatus410,
135StatusCodes.Status411LengthRequired => _bytesStatus411,
136StatusCodes.Status412PreconditionFailed => _bytesStatus412,
137StatusCodes.Status413PayloadTooLarge => _bytesStatus413,
138StatusCodes.Status414UriTooLong => _bytesStatus414,
139StatusCodes.Status415UnsupportedMediaType => _bytesStatus415,
140StatusCodes.Status416RangeNotSatisfiable => _bytesStatus416,
141StatusCodes.Status417ExpectationFailed => _bytesStatus417,
142StatusCodes.Status418ImATeapot => _bytesStatus418,
143StatusCodes.Status419AuthenticationTimeout => _bytesStatus419,
144StatusCodes.Status421MisdirectedRequest => _bytesStatus421,
145StatusCodes.Status422UnprocessableEntity => _bytesStatus422,
146StatusCodes.Status423Locked => _bytesStatus423,
147StatusCodes.Status424FailedDependency => _bytesStatus424,
148StatusCodes.Status426UpgradeRequired => _bytesStatus426,
149StatusCodes.Status428PreconditionRequired => _bytesStatus428,
150StatusCodes.Status429TooManyRequests => _bytesStatus429,
151StatusCodes.Status431RequestHeaderFieldsTooLarge => _bytesStatus431,
152StatusCodes.Status451UnavailableForLegalReasons => _bytesStatus451,
153StatusCodes.Status499ClientClosedRequest => _bytesStatus499,
155StatusCodes.Status500InternalServerError => _bytesStatus500,
156StatusCodes.Status501NotImplemented => _bytesStatus501,
157StatusCodes.Status502BadGateway => _bytesStatus502,
158StatusCodes.Status503ServiceUnavailable => _bytesStatus503,
159StatusCodes.Status504GatewayTimeout => _bytesStatus504,
160StatusCodes.Status505HttpVersionNotsupported => _bytesStatus505,
161StatusCodes.Status506VariantAlsoNegotiates => _bytesStatus506,
162StatusCodes.Status507InsufficientStorage => _bytesStatus507,
163StatusCodes.Status508LoopDetected => _bytesStatus508,
164StatusCodes.Status510NotExtended => _bytesStatus510,
165StatusCodes.Status511NetworkAuthenticationRequired => _bytesStatus511,
KestrelBadHttpRequestException.cs (34)
34ex = new BadHttpRequestException(CoreStrings.BadRequest_InvalidRequestHeadersNoCRLF, StatusCodes.Status400BadRequest, reason);
37ex = new BadHttpRequestException(CoreStrings.BadRequest_InvalidRequestLine, StatusCodes.Status400BadRequest, reason);
40ex = new BadHttpRequestException(CoreStrings.BadRequest_MalformedRequestInvalidHeaders, StatusCodes.Status400BadRequest, reason);
43ex = new BadHttpRequestException(CoreStrings.BadRequest_MultipleContentLengths, StatusCodes.Status400BadRequest, reason);
46ex = new BadHttpRequestException(CoreStrings.BadRequest_UnexpectedEndOfRequestContent, StatusCodes.Status400BadRequest, reason);
49ex = new BadHttpRequestException(CoreStrings.BadRequest_BadChunkSuffix, StatusCodes.Status400BadRequest, reason);
52ex = new BadHttpRequestException(CoreStrings.BadRequest_BadChunkSizeData, StatusCodes.Status400BadRequest, reason);
55ex = new BadHttpRequestException(CoreStrings.BadRequest_BadChunkExtension, StatusCodes.Status400BadRequest, reason);
58ex = new BadHttpRequestException(CoreStrings.BadRequest_ChunkedRequestIncomplete, StatusCodes.Status400BadRequest, reason);
61ex = new BadHttpRequestException(CoreStrings.BadRequest_InvalidCharactersInHeaderName, StatusCodes.Status400BadRequest, reason);
64ex = new BadHttpRequestException(CoreStrings.BadRequest_RequestLineTooLong, StatusCodes.Status414UriTooLong, reason);
67ex = new BadHttpRequestException(CoreStrings.BadRequest_HeadersExceedMaxTotalSize, StatusCodes.Status431RequestHeaderFieldsTooLarge, reason);
70ex = new BadHttpRequestException(CoreStrings.BadRequest_TooManyHeaders, StatusCodes.Status431RequestHeaderFieldsTooLarge, reason);
73ex = new BadHttpRequestException(CoreStrings.BadRequest_RequestHeadersTimeout, StatusCodes.Status408RequestTimeout, reason);
76ex = new BadHttpRequestException(CoreStrings.BadRequest_RequestBodyTimeout, StatusCodes.Status408RequestTimeout, reason);
79ex = new BadHttpRequestException(CoreStrings.BadRequest_MethodNotAllowed, StatusCodes.Status405MethodNotAllowed, reason, HttpMethod.Options);
82ex = new BadHttpRequestException(CoreStrings.BadRequest_MethodNotAllowed, StatusCodes.Status405MethodNotAllowed, reason, HttpMethod.Connect);
85ex = new BadHttpRequestException(CoreStrings.BadRequest_MissingHostHeader, StatusCodes.Status400BadRequest, reason);
88ex = new BadHttpRequestException(CoreStrings.BadRequest_MultipleHostHeaders, StatusCodes.Status400BadRequest, reason);
91ex = new BadHttpRequestException(CoreStrings.BadRequest_InvalidHostHeader, StatusCodes.Status400BadRequest, reason);
94ex = new BadHttpRequestException(CoreStrings.BadRequest_UnrecognizedHTTPVersion, StatusCodes.Status505HttpVersionNotsupported, reason);
97ex = new BadHttpRequestException(CoreStrings.BadRequest_InvalidRequestHeader, StatusCodes.Status400BadRequest, reason);
100ex = new BadHttpRequestException(CoreStrings.BadRequest, StatusCodes.Status400BadRequest, reason);
127ex = new BadHttpRequestException(CoreStrings.HttpParserTlsOverHttpError, StatusCodes.Status400BadRequest, reason);
130ex = new BadHttpRequestException(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail(detail), StatusCodes.Status400BadRequest, reason);
133ex = new BadHttpRequestException(CoreStrings.FormatBadRequest_InvalidRequestTarget_Detail(detail), StatusCodes.Status400BadRequest, reason);
136ex = new BadHttpRequestException(CoreStrings.FormatBadRequest_InvalidRequestHeader_Detail(detail), StatusCodes.Status400BadRequest, reason);
139ex = new BadHttpRequestException(CoreStrings.FormatBadRequest_InvalidContentLength_Detail(detail), StatusCodes.Status400BadRequest, reason);
142ex = new BadHttpRequestException(CoreStrings.FormatBadRequest_UnrecognizedHTTPVersion_Detail(detail), StatusCodes.Status505HttpVersionNotsupported, reason);
145ex = new BadHttpRequestException(CoreStrings.FormatBadRequest_FinalTransferCodingNotChunked(detail), StatusCodes.Status400BadRequest, reason);
148ex = new BadHttpRequestException(CoreStrings.FormatBadRequest_LengthRequiredHttp10(detail), StatusCodes.Status400BadRequest, reason);
151ex = new BadHttpRequestException(CoreStrings.FormatBadRequest_InvalidHostHeader_Detail(detail), StatusCodes.Status400BadRequest, reason);
154ex = new BadHttpRequestException(CoreStrings.FormatBadRequest_RequestBodyTooLarge(detail), StatusCodes.Status413PayloadTooLarge, reason);
157ex = new BadHttpRequestException(CoreStrings.BadRequest, StatusCodes.Status400BadRequest, reason);
Microsoft.AspNetCore.StaticAssets (13)
Microsoft.AspNetCore.StaticFiles (9)
Microsoft.AspNetCore.TestHost (2)
Microsoft.AspNetCore.Watch.BrowserRefresh (6)
Microsoft.AspNetCore.WebSockets (1)
Microsoft.DotNet.HotReload.Watch (1)