4xx Client Error
HTTP 405 Method Not Allowed
The URL exists but does not support the HTTP method used.
Check a URL's HTTP statusWhat 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
- Use a method listed in the Allow response header.
- 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
400 Bad Request401 Unauthorized403 Forbidden404 Not Found406 Not Acceptable408 Request Timeout409 Conflict410 Gone413 Content Too Large414 URI Too Long415 Unsupported Media Type418 I'm a teapot422 Unprocessable Content425 Too Early429 Too Many Requests431 Request Header Fields Too Large451 Unavailable For Legal Reasons