All HTTP status codes
HTTP 405 Method Not Allowed
Client ErrorThe URL exists but doesn't support the HTTP method used — e.g. POSTing to a GET-only endpoint. The Allow header lists what's permitted.
Defined in RFC 9110
Common causes
- Calling an endpoint with the wrong verb (POST vs PUT)
- Reverse proxy or static host blocking non-GET methods
- Framework route defined only for specific methods
How to fix it
Check the Allow response header and switch the method
Register the handler for the needed method on the server
Make sure intermediate proxies forward non-GET methods
Related status codes
404 Not Found
The server can't find anything at the requested URL. It says nothing about whether the resource ever existed or will exist.
501 Not ImplementedThe server doesn't support the functionality required — typically an HTTP method it doesn't implement at all (contrast 405: method known, not allowed here).
Want to explore status codes interactively? Try the free HTTP Status Code Reference — search, categories and example responses, right in your browser.