HTTP 405 – Method Not Allowed
The request method is known by the server but is not supported for this resource.
Common use case
Returned when, say, a client sends a DELETE request to an endpoint that only supports GET and POST.
Example
HTTP/1.1 405 Method Not Allowed
Allow: GET, POST
History
Part of HTTP/1.1 (RFC 2068, 1997).
Did you know?
A compliant 405 response must include an Allow header listing which methods are actually supported, so well-behaved clients can adapt.