405 Method Not Allowed — Causes & Fix
HTTP 405 (Method Not Allowed) means the HTTP method used (GET, POST, PUT, DELETE…) is not allowed for this resource, even though the resource exists.
- Applies to
- Any website or web server (HTTP standard)
- Time to fix
- 5–30 minutes
What it means
Causes include calling an endpoint with the wrong method, a misconfigured route, or a server that blocks certain methods. HTTP status 405 is defined in RFC 9110 (HTTP Semantics). This is a client-side (4xx) error — the request itself had a problem, so the fix is usually on the requester's side or in how the server validates the request.
Symptoms
- "405 Method Not Allowed" from an API/endpoint
- A form or API call fails while the URL clearly exists
How to fix it
- 1
Use the correct method
1. Check the API docs for which method the endpoint expects (e.g. POST vs GET) and use it.
- 2
Fix routing (developers)
1. Ensure the route/handler allows the method. 2. Check server config that may block methods like PUT/DELETE.
Frequently asked questions
Why 405 and not 404?
404 means the resource doesn't exist; 405 means it exists but you used the wrong method (e.g. GET where POST is required).
Last updated July 20, 2026
Guidance only — always consult a qualified professional or the official service manual before carrying out repairs.