15 references to Status405MethodNotAllowed
Microsoft.AspNetCore.Components.Server (1)
CircuitDisconnectMiddleware.cs (1)
36context.Response.StatusCode = StatusCodes.Status405MethodNotAllowed;
Microsoft.AspNetCore.Components.Server.Tests (1)
CircuitDisconnectMiddlewareTest.cs (1)
41Assert.Equal(StatusCodes.Status405MethodNotAllowed, context.Response.StatusCode);
Microsoft.AspNetCore.Http.Connections (3)
Internal\HttpConnectionDispatcher.cs (3)
97context.Response.StatusCode = StatusCodes.Status405MethodNotAllowed; 116context.Response.StatusCode = StatusCodes.Status405MethodNotAllowed; 463context.Response.StatusCode = StatusCodes.Status405MethodNotAllowed;
Microsoft.AspNetCore.Http.Connections.Tests (1)
HttpConnectionDispatcherTests.cs (1)
399Assert.Equal(StatusCodes.Status405MethodNotAllowed, context.Response.StatusCode);
Microsoft.AspNetCore.Http.Results (2)
ResultsCache.StatusCodes.cs (2)
114StatusCodes.Status405MethodNotAllowed => _status405MethodNotAllowed ??= new(StatusCodes.Status405MethodNotAllowed),
Microsoft.AspNetCore.OutputCaching.Tests (1)
OutputCachePolicyProviderTests.cs (1)
283[InlineData(StatusCodes.Status405MethodNotAllowed)]
Microsoft.AspNetCore.ResponseCaching.Tests (1)
ResponseCachingPolicyProviderTests.cs (1)
309[InlineData(StatusCodes.Status405MethodNotAllowed)]
Microsoft.AspNetCore.Routing (1)
Matching\HttpMethodMatcherPolicy.cs (1)
389context.Response.StatusCode = StatusCodes.Status405MethodNotAllowed;
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Http\ReasonPhrases.cs (2)
43private static readonly byte[] _bytesStatus405 = CreateStatusBytes(StatusCodes.Status405MethodNotAllowed); 129StatusCodes.Status405MethodNotAllowed => _bytesStatus405,
KestrelBadHttpRequestException.cs (2)
74ex = new BadHttpRequestException(CoreStrings.BadRequest_MethodNotAllowed, StatusCodes.Status405MethodNotAllowed, reason, HttpMethod.Options); 77ex = new BadHttpRequestException(CoreStrings.BadRequest_MethodNotAllowed, StatusCodes.Status405MethodNotAllowed, reason, HttpMethod.Connect);