405

Method Not Allowed

4xx · Client Error

The request method is not supported for the resource.

What does HTTP 405 Method Not Allowed mean?

The resource exists but the HTTP method used (GET, POST, PUT, DELETE…) is not allowed for it. The response should include an Allow header listing the supported methods.

4xx responses indicate the request was faulty: bad syntax, missing authentication, or a resource that does not exist. The fix usually lives on the client/request side.

Common causes

  • Using POST where only GET is allowed (or vice versa)
  • Calling an endpoint with an unsupported method
  • Misconfigured route handlers

How to fix a 405 error

  • Use a method the endpoint supports (check the Allow header)
  • Confirm the API documentation for the correct verb
  • Update server routing to handle the method if it should be allowed

Related 4xx status codes

Look up and search every HTTP status code in one place.

Open the HTTP Status Code tool