HTTP 405 Method Not Allowed
What a 405 Method Not Allowed response means, why it happens, and the fastest ways to fix it.
The URL exists but doesn't accept the HTTP method used — e.g. POSTing to a GET-only endpoint. The Allow response header lists valid methods.
- POST sent where the API expects PUT/PATCH.
- Server or proxy blocking methods like DELETE.
- Form actions posting to a static file.
- Read the Allow header in the response.
- Check the API docs for the exact method per endpoint.
- Some proxies strip non-standard methods — test against the origin directly.
Notes
HTTP status codes are defined in RFC 9110 (which replaced RFC 7231). The first digit is the class: 1xx informational, 2xx success, 3xx redirection, 4xx client error, 5xx server error.
Same class: 400 · 401 · 403 · 404 · 408 · 409 · 410 · 412 · 413 · 415 · 418 · 422 · 425 · 429 · 431 · 451
All codes: HTTP status code reference
Frequently asked questions
What does HTTP 405 mean?
HTTP 405 Method Not Allowed: The URL exists but doesn't accept the HTTP method used — e.g. POSTing to a GET-only endpoint. The Allow response header lists valid methods.
How do I fix a 405 error?
Read the Allow header in the response. Check the API docs for the exact method per endpoint. Some proxies strip non-standard methods — test against the origin directly.
Is a 405 my fault or the server's?
405 is a client error — the request itself needs to change, though server misconfiguration can also trigger it.