coapjs / node-coap

CoAP - Node.js style
MIT License
528 stars 154 forks source link

Change response code based on Get or Post/Put #371

Open JohnnyPicnic opened 1 year ago

JohnnyPicnic commented 1 year ago

https://github.com/coapjs/node-coap/blob/c8521c9c1f0c64b9e63965b38f0d0b91a01ffb06/lib/server.ts#L487

'2.05' is a valid response for Get and '2.01' is for Post and Put. You may want to modify the response based on the request type.