Ugh, HTTP code 405 is the worst. Had this happen when I accidentally sent PUT instead of PATCH.
Pro tip: Use curl with -v to see the full request/response. Like:
`curl -v -X POST https://api.example.com/endpoint`
If the server responds with "Allow: GET, HEAD", you’ll know POST isn’t supported. Saves a ton of guesswork!
Pro tip: Use curl with -v to see the full request/response. Like:
`curl -v -X POST https://api.example.com/endpoint`
If the server responds with "Allow: GET, HEAD", you’ll know POST isn’t supported. Saves a ton of guesswork!
