// http 4xx · client error
HTTP 405 Method Not Allowed
The HTTP method isn't supported for this resource.
What HTTP 405 Method Not Allowed means
405 Method Not Allowed means the URL exists but doesn't support the HTTP method you used — for example, sending POST to a read-only endpoint. The response should list the allowed methods in the `Allow` header.
Which category is it?
405 is a 4xx code — Client error. 4xx means the request has a problem the client must fix — bad syntax, missing authentication, or a resource that isn't there. It's the caller's responsibility.
Common causes
- Using POST/PUT/DELETE on a GET-only endpoint
- Calling an endpoint with the wrong verb
- A route defined for a different method
How to fix it
- Use the method the endpoint supports (check the `Allow` header)
- Confirm the API's expected verb for this route