405 Method Not Allowed
The HTTP method used is not allowed for this resource.
Definition (RFC 9110)
HTTP status code 405 405 Method Not Allowed is defined in RFC 9110 (HTTP Semantics), Section 15.5.6 — the current authoritative specification for HTTP semantics, published June 2022, which obsoletes the older RFC 7231 and RFC 2616.
Description
The 405 Method Not Allowed status code indicates that the method received in the request is not supported for the target resource. The response must include an Allow header listing the valid methods.
Common Causes
- Using POST on a GET-only endpoint
- Trying DELETE on a resource that doesn't support it
- Incorrect API method in client code
How to Fix
- Check API documentation for allowed methods
- Use the method specified in the Allow header
- Verify endpoint URL is correct
Check your website's HTTP status code
Check now →