Skip to main content

4xx Client Error

HTTP 405 Method Not Allowed

The URL exists but does not support the HTTP method used.

Check a URL's HTTP status

What 405 means

For example, sending POST to an endpoint that only accepts GET. The Allow header lists supported methods.

Common causes

  • Calling an API with the wrong method.
  • A form posting to a static page.

How to fix it

  1. Use a method listed in the Allow response header.
  2. Check routing configuration for the endpoint.

How to check a status code

Enter a URL in the HTTP Status Checker to see its status code, every redirect hop, and response time. For redirect-heavy pages, the Website Speed Test shows how much time redirects add.

FAQ

What does HTTP 405 mean?
405 Method Not Allowed is a 4xx client error status code. The URL exists but does not support the HTTP method used.
What causes a 405 error?
Calling an API with the wrong method. A form posting to a static page.
How do I fix HTTP 405?
Use a method listed in the Allow response header. Check routing configuration for the endpoint.

Defined in RFC 9110.

Other 4xx client error codes