HTTP 405 Method Not Allowed — Wrong HTTP Method
Warning4xx client error
Overview
HTTP 405 Method Not Allowed means the HTTP method used is not supported for this endpoint.
Key Details
- Status: 405 Method Not Allowed
- Category: 4xx Client Error
- The HTTP method is not supported
- Response includes Allow header listing valid methods
Common Causes
- Sending POST to a GET-only endpoint
- Using DELETE on a read-only resource
- Incorrect API method in client code
- Server configuration blocking certain methods
Steps
- 1Check the Allow response header for valid methods
- 2Verify the correct HTTP method in your request
- 3Review API documentation for the endpoint
- 4Ensure server/proxy is not blocking the method
Tags
http-status4xx-client-errorhttp-405httpstatus-code
More in 4xx Client Error
http-400-bad-requestHTTP 400 Bad Request — What It Means & How to Fix It
Errorhttp-401-unauthorizedHTTP 401 Unauthorized — What It Means & How to Fix It
Errorhttp-402-payment-requiredHTTP 402 Payment Required — What It Means & How to Fix It
Errorhttp-403-forbiddenHTTP 403 Forbidden — What It Means & How to Fix It
Errorhttp-404-not-foundHTTP 404 Not Found — What It Means & How to Fix It
Errorhttp-405-method-not-allowedHTTP 405 Method Not Allowed — What It Means & How to Fix It
ErrorFrequently Asked Questions
Check the Allow header in the 405 response.