Fix UDP payload length & CoAP reply code