This makes no sense at all. "you got a response" means the transport succeeded, "it timed out" means the transport failed.
- 404 might mean the URL was wrong
- 405 might mean swapping POST with PUT
Both of these are simple programming errors. You might as well have used the wrong host or protocol for that matter