26 references to StatusCode
InMemory.FunctionalTests (7)
MaxRequestBodySizeTests.cs (2)
84
context.Response.StatusCode = requestRejectedEx.
StatusCode
;
131
context.Response.StatusCode = requestRejectedEx.
StatusCode
;
ResponseTests.cs (5)
511
&& ((BadHttpRequestException)w.Exception).
StatusCode
== StatusCodes.Status400BadRequest);
2029
&& ((BadHttpRequestException)w.Exception).
StatusCode
== StatusCodes.Status400BadRequest);
2083
&& ((BadHttpRequestException)message.Exception).
StatusCode
== StatusCodes.Status400BadRequest)
2146
&& ((BadHttpRequestException)w.Exception).
StatusCode
== StatusCodes.Status400BadRequest);
4765
&& ((BadHttpRequestException)w.Exception).
StatusCode
== StatusCodes.Status400BadRequest);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (19)
Http1\Http1ConnectionTests.cs (1)
565
Assert.Equal(405, exception.
StatusCode
);
HttpParserTests.cs (14)
97
Assert.Equal(StatusCodes.Status400BadRequest, exception.
StatusCode
);
125
Assert.Equal(StatusCodes.Status400BadRequest, exception.
StatusCode
);
153
Assert.Equal(StatusCodes.Status400BadRequest, exception.
StatusCode
);
172
Assert.Equal(StatusCodes.Status505HttpVersionNotsupported, exception.
StatusCode
);
190
Assert.Equal(StatusCodes.Status400BadRequest, exception.
StatusCode
);
495
Assert.Equal(StatusCodes.Status400BadRequest, exception.
StatusCode
);
515
Assert.Equal(StatusCodes.Status400BadRequest, exception.
StatusCode
);
533
Assert.Equal(StatusCodes.Status400BadRequest, exception.
StatusCode
);
544
Assert.Equal(StatusCodes.Status505HttpVersionNotsupported, exception.
StatusCode
);
558
Assert.Equal(StatusCodes.Status400BadRequest, exception.
StatusCode
);
592
Assert.Equal(StatusCodes.Status400BadRequest, badHttpRequestException.
StatusCode
);
613
Assert.Equal(StatusCodes.Status400BadRequest, exception.
StatusCode
);
633
Assert.Equal(StatusCodes.Status400BadRequest, exception.
StatusCode
);
795
Assert.Equal(StatusCodes.Status400BadRequest, exception.
StatusCode
);
HttpRequestHeadersTests.cs (1)
404
Assert.Equal(StatusCodes.Status400BadRequest, exception.
StatusCode
);
MessageBodyTests.cs (3)
552
Assert.Equal(StatusCodes.Status400BadRequest, ex.
StatusCode
);
586
Assert.Equal(StatusCodes.Status400BadRequest, ex.
StatusCode
);
813
Assert.Equal(StatusCodes.Status408RequestTimeout, exception.
StatusCode
);