19 writes to StatusCode
InMemory.FunctionalTests (6)
src\Servers\Kestrel\shared\test\RevocationResponder.cs (6)
140
context.Response.
StatusCode
= 500;
161
context.Response.
StatusCode
= 404;
186
context.Response.
StatusCode
= 200;
204
context.Response.
StatusCode
= 200;
231
context.Response.
StatusCode
= 400;
245
context.Response.
StatusCode
= 200;
Microsoft.AspNetCore.InternalTesting.Tests (1)
HttpClientSlimTest.cs (1)
103
context.Response.
StatusCode
= statusCode;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (6)
src\Servers\Kestrel\shared\test\RevocationResponder.cs (6)
140
context.Response.
StatusCode
= 500;
161
context.Response.
StatusCode
= 404;
186
context.Response.
StatusCode
= 200;
204
context.Response.
StatusCode
= 200;
231
context.Response.
StatusCode
= 400;
245
context.Response.
StatusCode
= 200;
System.Net.HttpListener (6)
System\Net\HttpListenerResponse.cs (1)
246
StatusCode
= (int)HttpStatusCode.Redirect;
System\Net\Managed\HttpConnection.cs (1)
451
response.
StatusCode
= status;
System\Net\Managed\ListenerAsyncResult.Managed.cs (3)
128
context.Response.
StatusCode
= (int)HttpStatusCode.InternalServerError;
136
context.Response.
StatusCode
= (int)HttpStatusCode.Unauthorized;
148
context.Response.
StatusCode
= (int)errorCode;
System\Net\Managed\WebSockets\HttpWebSocket.Managed.cs (1)
51
response.
StatusCode
= (int)HttpStatusCode.SwitchingProtocols; // HTTP 101
4 references to StatusCode
System.Net.HttpListener (4)
System\Net\HttpListenerResponse.cs (2)
151
return _statusDescription ??= HttpStatusDescription.Get(
StatusCode
) ?? string.Empty;
247
StatusDescription = HttpStatusDescription.Get(
StatusCode
)!;
System\Net\Managed\HttpListenerResponse.Managed.cs (2)
187
if (CanSendResponseBody(_httpContext!.Response.
StatusCode
))
202
_contentLength = CanSendResponseBody(_httpContext!.Response.
StatusCode
) ? -1 : 0;