HTTP 405 Method Not Allowed
The HTTP method used is not supported for this endpoint.
Method Not Allowed
The HTTP method used is not supported for this endpoint.
What Causes HTTP 405?
- Using GET on a POST-only endpoint
- Using DELETE on a read-only endpoint
- Incorrect HTTP method for the operation
- The endpoint does not implement the requested method
Code Examples
See how HTTP 405 responses look in different programming languages and tools.
curl -X DELETE https://api.example.com/users
# Response: 405 Method Not Allowed
# Allow: GET, POSTHow to Fix HTTP 405
- Check the Allow header to see which methods are supported
- Use the correct HTTP method for the endpoint
- Review API documentation for method support
- Implement OPTIONS preflight for CORS requests
Related Status Codes
The request was malformed or invalid. The server cannot process it.
Authentication is required. The client must provide valid credentials.
The server understood the request but refuses to authorize it. Authentication won't help.
The requested resource could not be found on the server.
The server encountered an unexpected condition that prevented it from fulfilling the request.
Test Your APIs
Frequently Asked Questions
What does HTTP 405 mean?
The HTTP method used is not supported for this endpoint.
What causes HTTP 405?
Using GET on a POST-only endpoint. Using DELETE on a read-only endpoint. Incorrect HTTP method for the operation. The endpoint does not implement the requested method
How to fix HTTP 405?
Check the Allow header to see which methods are supported. Use the correct HTTP method for the endpoint. Review API documentation for method support. Implement OPTIONS preflight for CORS requests