Skip to content
MtrXTools

405 Method Not Allowed

This URL does not accept that HTTP method

Seen in APIs, web servers, frameworks

The resource exists, but the server does not allow the method used, such as POST or DELETE.

Common causes

  • The route only defines a handler for other methods (e.g. GET but not POST).
  • A POST sent to a static file, which most web servers only serve for GET and HEAD.
  • A redirect turned the request into a different method or URL.

How to fix it

  1. Check the Allow response header for the methods the URL accepts.
  2. Add a handler for the method in the application route.
  3. Point form actions and API calls at the application endpoint, not a static path.
Check the response

Got a different message? Paste it into the error explainer.

Related errors

All 51 HTTP & CDN errors