Skip to content
Latchkey

What Is HTTP 405 Method Not Allowed?

HTTP 405 Method Not Allowed explained, and what it means when you see it in CI/CD and deployments.

HTTP 405 means the resource exists but does not support the HTTP method used.

What it means

A 405 happens when you POST to a GET-only endpoint, or DELETE where it is not allowed. The Allow header lists the supported methods.

When you see it in CI/CD

CI API tests hit a 405 when the test uses the wrong verb or when a redirect downgraded a POST to GET. Check the Allow header and the request method.

Key takeaways

  • 405 means the method is not allowed.
  • Check the Allow header.
  • Often a wrong verb or redirect downgrade.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →