A 405 response typically occurs when the URL you’re calling responds to GET or POST requests, but not PUT or DELETE.
This example shows a typical 405 error:
{
"additionalDetail": {
"requestId": "3b3de4124d00a219"
},
"detail": "Request method 'PUT' is not supported. Supported methods are GET and POST.",
"errorCode": "EKV_2000",
"instance": "/edgekv/error-instances/eaaadc8c-4fd7-4752-af2e-8227c6c1dda8",
"status": 405,
"title": "Method Not Allowed",
"type": "/edgekv/error-types/edgekv-method-not-allowed"
}