TrueURL

405 Method Not Allowed

The URL exists but does not support the HTTP method used, for example POST to a static page. The Allow header lists the supported methods.

Reason phrase
Method Not Allowed
Redirect
No
Cacheable by default
Yes

405 Method Not Allowed means the server knows the request method, but the target resource does not support it. The response must include an Allow header that lists the methods the resource does support, for example Allow: GET, HEAD, OPTIONS.

Typical cases are a POST to a static file, a DELETE on a read-only API resource, or a GET on an endpoint that only accepts form posts. If the server does not recognise the method at all, 501 Not Implemented is the right answer instead.

A 405 is heuristically cacheable.

Example response

HTTP
HTTP/1.1 405 Method Not Allowed
Date: Fri, 06 Nov 2026 10:15:32 GMT
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Content-Length: 30

{"error":"method_not_allowed"}

SEO and redirect checking

A 405 for normal GET requests is a 4xx error and prevents indexing. More often the problem shows up with other methods: some servers and frameworks answer HEAD with 405, which confuses link checkers and monitoring tools that use HEAD to save bandwidth. If a check with the method set to HEAD returns 405 while GET returns 200, the server mishandles HEAD, even though HTTP requires general-purpose servers to support it.

Common causes and use cases

  • A form or API client posts to a URL that only serves static content; nginx answers such requests with "405 Not Allowed".
  • A framework route only defines GET, so HEAD, POST or PUT are rejected.
  • A redirect kept the method: after a 307 or 308, a POST stays a POST and may land on a page that only accepts GET.
  • WebDAV or other methods are disabled in the server configuration.

URL Redirect Checker

See every status code a URL returns, hop by hop, with the free TrueURL redirect checker.