| Previous | Next |
| HTTP_STATUS_NOT_FOUND | HTTP_STATUS_NONE_ACCEPTABLE |
HTTP_STATUS_BAD_METHOD
A 405 response must include an Allow header listing the methods currently supported by that resource. It differs from 501, which says the server does not implement required functionality at all.
Inspect the endpoint-specific method contract and any method override middleware. Changing a path alone will not fix a method policy or route configuration mismatch.
A compliant 405 response should advertise the methods supported for that resource in the Allow header. This distinguishes a known resource with an unsupported method from a 404 response for an unknown target. Clients should correct the method according to the resource contract instead of changing the URI blindly.
Looking for a different code? Search another status or error code.