26 references to StatusCode
InMemory.FunctionalTests (7)
MaxRequestBodySizeTests.cs (2)
84context.Response.StatusCode = requestRejectedEx.StatusCode; 131context.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)
565Assert.Equal(405, exception.StatusCode);
HttpParserTests.cs (14)
97Assert.Equal(StatusCodes.Status400BadRequest, exception.StatusCode); 125Assert.Equal(StatusCodes.Status400BadRequest, exception.StatusCode); 153Assert.Equal(StatusCodes.Status400BadRequest, exception.StatusCode); 172Assert.Equal(StatusCodes.Status505HttpVersionNotsupported, exception.StatusCode); 190Assert.Equal(StatusCodes.Status400BadRequest, exception.StatusCode); 495Assert.Equal(StatusCodes.Status400BadRequest, exception.StatusCode); 515Assert.Equal(StatusCodes.Status400BadRequest, exception.StatusCode); 533Assert.Equal(StatusCodes.Status400BadRequest, exception.StatusCode); 544Assert.Equal(StatusCodes.Status505HttpVersionNotsupported, exception.StatusCode); 558Assert.Equal(StatusCodes.Status400BadRequest, exception.StatusCode); 592Assert.Equal(StatusCodes.Status400BadRequest, badHttpRequestException.StatusCode); 613Assert.Equal(StatusCodes.Status400BadRequest, exception.StatusCode); 633Assert.Equal(StatusCodes.Status400BadRequest, exception.StatusCode); 795Assert.Equal(StatusCodes.Status400BadRequest, exception.StatusCode);
HttpRequestHeadersTests.cs (1)
404Assert.Equal(StatusCodes.Status400BadRequest, exception.StatusCode);
MessageBodyTests.cs (3)
552Assert.Equal(StatusCodes.Status400BadRequest, ex.StatusCode); 586Assert.Equal(StatusCodes.Status400BadRequest, ex.StatusCode); 813Assert.Equal(StatusCodes.Status408RequestTimeout, exception.StatusCode);