How to Fix 405 Method Not Allowed Error

Quick answer
A 405 Method Not Allowed error means the server does not accept the request type (such as POST or PUT) for that URL. Visitors should reload or go back; developers should use the correct HTTP method and check server rules.
What does “405 Method Not Allowed” mean?
HTTP 405 means the method is known but not supported for this resource.
What causes it?
- Form sending POST to a page that only allows GET
- Wrong API method
- Server or firewall blocking certain methods
Steps to try
Stop when the issue is resolved.
- Reload the page and try the action again.
- Check the URL is correct.
- Developers: check the API docs for the right method.
- Site owners: check server config (.htaccess, Nginx) for method limits.
- Site owners: check recent plugin or module changes.
Need more support? Check the official help: MDN Web Docs: HTTP response status codes
FAQs
Does the server say which methods are allowed?
Yes, it should send an Allow header listing them.
Is 405 a security error?
No, but some firewalls return it to block unusual requests.
By Daniel Carter
·