An endpoint can exist and still reject a particular operation. A form that posts to a read-only route may receive 405 even though opening that URL works in a browser. The response must identify supported methods with Allow. Find whether a release changed the client action, route definition or proxy method handling before altering the endpoint's permissions.
405 Method Not Allowed
The target resource does not accept the request method that was used.
All HTTP status codes
What does HTTP 405 mean?
An investigation example
Illustrative contact-form investigation
GET /contact works.
POST /contact returns 405 Method Not Allowed.
Allow: GET, HEAD
Action: restore the intended submission route and form target.
Verify: valid submissions are stored or delivered and invalid ones receive normal validation feedback.Common causes
- A browser or monitor sends GET to an endpoint intended only for POST requests.
- A reverse proxy or web-server rule blocks a method that the application expects.
- A client sends HEAD or an OPTIONS preflight to a route that handles those methods incorrectly.
Diagnose the response
Compare the request method with the endpoint contract and the Allow response header, including any redirected request.
- Compare the method with the route contract and inspect Allow. Do not infer method support from the fact that the URL loads in a browser.
- Check routing and intermediary method restrictions if the documented method fails. For cross-origin applications, investigate OPTIONS handling and CORS configuration separately.
- Choose a read-only URL for routine monitoring. Changing a monitor to POST against a real write endpoint can repeatedly create data or trigger side effects.
What it means for website monitoring
A page GET does not validate every method used by that page. Check the failing form or API operation directly when a public page appears healthy but submissions fail.