From 718b2dfad575110ed847a2d7c83260154f782eae Mon Sep 17 00:00:00 2001 From: Jean-Philippe Comtois Date: Thu, 29 Sep 2016 12:59:19 -0400 Subject: [PATCH] pdu.c: correct response codes for 2.xx Fixed response codes and reason phrase for diagnostic payloads for 2.xx responses. --- src/pdu.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pdu.c b/src/pdu.c index cf84af7c..922266af 100644 --- a/src/pdu.c +++ b/src/pdu.c @@ -279,11 +279,11 @@ typedef struct { /* if you change anything here, make sure, that the longest string does not * exceed COAP_ERROR_PHRASE_LENGTH. */ error_desc_t coap_error[] = { - { COAP_RESPONSE_CODE(65), "2.01 Created" }, - { COAP_RESPONSE_CODE(66), "2.02 Deleted" }, - { COAP_RESPONSE_CODE(67), "2.03 Valid" }, - { COAP_RESPONSE_CODE(68), "2.04 Changed" }, - { COAP_RESPONSE_CODE(69), "2.05 Content" }, + { COAP_RESPONSE_CODE(201), "Created" }, + { COAP_RESPONSE_CODE(202), "Deleted" }, + { COAP_RESPONSE_CODE(203), "Valid" }, + { COAP_RESPONSE_CODE(204), "Changed" }, + { COAP_RESPONSE_CODE(205), "Content" }, { COAP_RESPONSE_CODE(400), "Bad Request" }, { COAP_RESPONSE_CODE(401), "Unauthorized" }, { COAP_RESPONSE_CODE(402), "Bad Option" },