111 references to Status200OK
Microsoft.AspNetCore.Components.Server (1)
CircuitDisconnectMiddleware.cs (1)
49context.Response.StatusCode = StatusCodes.Status200OK;
Microsoft.AspNetCore.Diagnostics.HealthChecks (2)
HealthCheckOptions.cs (2)
29{HealthStatus.Healthy, StatusCodes.Status200OK}, 30{HealthStatus.Degraded, StatusCodes.Status200OK},
Microsoft.AspNetCore.Http.Connections (1)
Internal\Transports\LongPollingServerTransport.cs (1)
88context.Response.StatusCode = StatusCodes.Status200OK;
Microsoft.AspNetCore.Http.Results (14)
Ok.cs (3)
26/// Gets the HTTP status code: <see cref="StatusCodes.Status200OK"/> 28public int StatusCode => StatusCodes.Status200OK; 53builder.Metadata.Add(new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(void)));
OkOfT.cs (3)
37/// Gets the HTTP status code: <see cref="StatusCodes.Status200OK"/> 39public int StatusCode => StatusCodes.Status200OK; 67builder.Metadata.Add(ProducesResponseTypeMetadata.CreateUnvalidated(typeof(TValue), StatusCodes.Status200OK, ContentTypeConstants.ApplicationJsonContentTypes));
Results.cs (2)
659/// Produces a <see cref="StatusCodes.Status200OK"/> response. 667/// Produces a <see cref="StatusCodes.Status200OK"/> response.
ResultsCache.StatusCodes.cs (2)
90StatusCodes.Status200OK => _status200OK ??= new(StatusCodes.Status200OK),
ServerSentEventsResult.cs (2)
26public int? StatusCode => StatusCodes.Status200OK; 107builder.Metadata.Add(new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(SseItem<T>), contentTypes: ["text/event-stream"]));
TypedResults.cs (2)
707/// Produces a <see cref="StatusCodes.Status200OK"/> response. 713/// Produces a <see cref="StatusCodes.Status200OK"/> response.
Microsoft.AspNetCore.Mvc.ApiExplorer (4)
ApiResponseTypeProvider.cs (4)
128var defaultKey = new ResponseKey(StatusCodes.Status200OK, declaredReturnType); 131StatusCode = StatusCodes.Status200OK, 234if (declaredReturnType != null && (statusCode == StatusCodes.Status200OK || statusCode == StatusCodes.Status201Created)) 331if (inferredType != null && (statusCode == StatusCodes.Status200OK || statusCode == StatusCodes.Status201Created))
Microsoft.AspNetCore.Mvc.Core (44)
ActionResultOfT.cs (1)
16private const int DefaultStatusCode = StatusCodes.Status200OK;
ControllerBase.cs (34)
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. 1065/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>), 1078/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>), 1092/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>), the 1106/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>), the 1125/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>), 1146/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>), 1169/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>), the 1192/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>), the 1217/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>), with the 1233/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>), with the 1250/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>) with the 1268/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>) with the 1291/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>), 1315/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>), 1341/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>), the 1367/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>), the 1395/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>) with the 1408/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>) with the 1422/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>) with the 1437/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>) with the 1457/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>), and the 1478/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>), and the 1501/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>), the 1524/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>), the 1549/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>) with the 1562/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>) with the 1576/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>) with the 1594/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>) with the 1618/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>), and 1639/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>), and 1662/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>), the 1685/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>), the
DefaultApiConventions.cs (3)
19[ProducesResponseType(StatusCodes.Status200OK)] 33[ProducesResponseType(StatusCodes.Status200OK)] 141[ProducesResponseType(StatusCodes.Status200OK)]
Formatters\HttpNoContentOutputFormatter.cs (1)
38if (response.StatusCode == StatusCodes.Status200OK)
OkObjectResult.cs (2)
11/// will produce a <see cref="StatusCodes.Status200OK"/> response if negotiation and formatting succeed. 16private const int DefaultStatusCode = StatusCodes.Status200OK;
OkResult.cs (2)
11/// <see cref="StatusCodes.Status200OK"/> response. 16private const int DefaultStatusCode = StatusCodes.Status200OK;
ProducesAttribute.cs (1)
64public int StatusCode => StatusCodes.Status200OK;
Microsoft.AspNetCore.Mvc.RazorPages (24)
PageBase.cs (12)
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 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
PageModel.cs (12)
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 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 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
Microsoft.AspNetCore.OutputCaching (1)
Policies\DefaultPolicy.cs (1)
54if (response.StatusCode != StatusCodes.Status200OK)
Microsoft.AspNetCore.ResponseCaching (1)
ResponseCachingPolicyProvider.cs (1)
116if (response.StatusCode != StatusCodes.Status200OK)
Microsoft.AspNetCore.Routing (2)
Builder\OpenApiRouteHandlerBuilderExtensions.cs (2)
43/// <param name="statusCode">The response status code. Defaults to <see cref="StatusCodes.Status200OK"/>.</param> 51int statusCode = StatusCodes.Status200OK,
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Internal\Http\HttpProtocol.cs (3)
387_statusCode = StatusCodes.Status200OK; 1307static bool Is1xxCode(int code) => code >= StatusCodes.Status100Continue && code < StatusCodes.Status200OK; 1308static bool Is2xxCode(int code) => code >= StatusCodes.Status200OK && code < StatusCodes.Status300MultipleChoices;
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
304if (StatusCode < StatusCodes.Status200OK || StatusCodes.Status300MultipleChoices <= StatusCode)
Internal\Http\ReasonPhrases.cs (2)
17private static readonly byte[] _bytesStatus200 = CreateStatusBytes(StatusCodes.Status200OK); 103StatusCodes.Status200OK => _bytesStatus200,
Microsoft.AspNetCore.StaticAssets (6)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
297if (ctx.Response.StatusCode == StatusCodes.Status200OK)
StaticAssetsInvoker.cs (5)
119if (context.Response.StatusCode == StatusCodes.Status200OK) 143await SendStatusAsync(requestContext, StatusCodes.Status200OK); 191await ApplyResponseHeadersAsync(context, StatusCodes.Status200OK); 212if (requestContext.Response.StatusCode == StatusCodes.Status200OK) 224if (requestContext.Response.StatusCode == StatusCodes.Status200OK)
Microsoft.AspNetCore.StaticFiles (4)
StaticFileContext.cs (4)
246if (_response.StatusCode == StatusCodes.Status200OK) 264if (statusCode == StatusCodes.Status200OK) 313await SendStatusAsync(StatusCodes.Status200OK); 353await ApplyResponseHeadersAsync(StatusCodes.Status200OK);
Microsoft.AspNetCore.Watch.BrowserRefresh (1)
src\sdk\src\Dotnet.Watch\Web.Middleware\ResponseStreamWrapper.cs (1)
105(response.StatusCode == StatusCodes.Status200OK ||