Home
last modified time | relevance | path

Searched refs:COAP_RESPONSE_CODE (Results 1 – 10 of 10) sorted by relevance

/net-tools-3.4.0/libcoap/include/coap/
Dpdu.h96 #define COAP_RESPONSE_CODE(N) (((N)/100 << 5) | (N)%100) macro
126 #define COAP_RESPONSE_200 COAP_RESPONSE_CODE(200) /* 2.00 OK */
127 #define COAP_RESPONSE_201 COAP_RESPONSE_CODE(201) /* 2.01 Created */
128 #define COAP_RESPONSE_304 COAP_RESPONSE_CODE(203) /* 2.03 Valid */
129 #define COAP_RESPONSE_400 COAP_RESPONSE_CODE(400) /* 4.00 Bad Request */
130 #define COAP_RESPONSE_404 COAP_RESPONSE_CODE(404) /* 4.04 Not Found */
131 #define COAP_RESPONSE_405 COAP_RESPONSE_CODE(405) /* 4.05 Method Not Allowed */
132 #define COAP_RESPONSE_415 COAP_RESPONSE_CODE(415) /* 4.15 Unsupported Media Type */
133 #define COAP_RESPONSE_500 COAP_RESPONSE_CODE(500) /* 5.00 Internal Server Error */
134 #define COAP_RESPONSE_501 COAP_RESPONSE_CODE(501) /* 5.01 Not Implemented */
[all …]
/net-tools-3.4.0/libcoap/src/
Dpdu.c282 { COAP_RESPONSE_CODE(65), "2.01 Created" },
283 { COAP_RESPONSE_CODE(66), "2.02 Deleted" },
284 { COAP_RESPONSE_CODE(67), "2.03 Valid" },
285 { COAP_RESPONSE_CODE(68), "2.04 Changed" },
286 { COAP_RESPONSE_CODE(69), "2.05 Content" },
287 { COAP_RESPONSE_CODE(400), "Bad Request" },
288 { COAP_RESPONSE_CODE(401), "Unauthorized" },
289 { COAP_RESPONSE_CODE(402), "Bad Option" },
290 { COAP_RESPONSE_CODE(403), "Forbidden" },
291 { COAP_RESPONSE_CODE(404), "Not Found" },
[all …]
Dnet.c1161 COAP_RESPONSE_CODE(205), in coap_wellknown_response()
1180 resp->hdr->code = COAP_RESPONSE_CODE(400); in coap_wellknown_response()
1190 resp->hdr->code = COAP_RESPONSE_CODE(400); in coap_wellknown_response()
1265 resp->hdr->code = COAP_RESPONSE_CODE(503); in coap_wellknown_response()
1385 coap_new_error_response(node->pdu, COAP_RESPONSE_CODE(404), in handle_request()
1395 response = coap_new_error_response(node->pdu, COAP_RESPONSE_CODE(405), in handle_request()
1492 response = coap_new_error_response(node->pdu, COAP_RESPONSE_CODE(405), in handle_request()
1601 coap_new_error_response(rcvd->pdu, COAP_RESPONSE_CODE(402), opt_filter);
/net-tools-3.4.0/libcoap/tests/
Dtest_error_response.c42 response = coap_new_error_response(pdu, COAP_RESPONSE_CODE(400), opts); in t_error_response1()
72 response = coap_new_error_response(pdu, COAP_RESPONSE_CODE(404), opts); in t_error_response2()
87 const unsigned char code = COAP_RESPONSE_CODE(402); in t_error_response3()
120 const unsigned char code = COAP_RESPONSE_CODE(402); in t_error_response4()
159 const unsigned char code = COAP_RESPONSE_CODE(402); in t_error_response5()
200 const unsigned char code = COAP_RESPONSE_CODE(402); in t_error_response6()
241 const unsigned char code = COAP_RESPONSE_CODE(402); in t_error_response7()
283 const unsigned char code = COAP_RESPONSE_CODE(503); in t_error_response8()
Dtest_pdu.c365 pdu->hdr->code = COAP_RESPONSE_CODE(404); in t_encode_pdu5()
423 pdu->hdr->code = COAP_RESPONSE_CODE(203); in t_encode_pdu7()
446 pdu->hdr->code = COAP_RESPONSE_CODE(203); in t_encode_pdu8()
479 pdu->hdr->code = COAP_RESPONSE_CODE(204); in t_encode_pdu9()
561 pdu->hdr->code = COAP_RESPONSE_CODE(204); in t_encode_pdu10()
/net-tools-3.4.0/libcoap/examples/
Detsi_iot_01.c134 response->hdr->code = COAP_RESPONSE_CODE(205); in hnd_get_index()
157 response->hdr->code = COAP_RESPONSE_CODE(500); in hnd_get_resource()
162 response->hdr->code = COAP_RESPONSE_CODE(205); in hnd_get_resource()
183 response->hdr->code = COAP_RESPONSE_CODE(400); in hnd_get_resource()
189 response->hdr->code = COAP_RESPONSE_CODE(500); in hnd_get_resource()
235 response->hdr->code = COAP_RESPONSE_CODE(202); in hnd_delete_resource()
263 response->hdr->code = COAP_RESPONSE_CODE(500); in hnd_post_test()
299 response->hdr->code = COAP_RESPONSE_CODE(201); in hnd_post_test()
314 response->hdr->code = COAP_RESPONSE_CODE(204); in hnd_put_test()
352 response->hdr->code = COAP_RESPONSE_CODE(500); in hnd_put_test()
[all …]
Dcoap-server.c78 response->hdr->code = COAP_RESPONSE_CODE(205); in hnd_get_index()
111 my_clock_base ? COAP_RESPONSE_CODE(205) : COAP_RESPONSE_CODE(404); in hnd_get_time()
177 my_clock_base ? COAP_RESPONSE_CODE(204) : COAP_RESPONSE_CODE(201); in hnd_put_time()
226 response->hdr->code = COAP_RESPONSE_CODE(503); in hnd_get_async()
262 COAP_RESPONSE_CODE(205), 0, size); in check_async()
Dcoap-rd.c108 response->hdr->code = COAP_RESPONSE_CODE(205); in hnd_get_resource()
132 response->hdr->code = COAP_RESPONSE_CODE(501); in hnd_put_resource()
157 code = COAP_RESPONSE_CODE(503); in hnd_put_resource()
173 code = COAP_RESPONSE_CODE(204); in hnd_put_resource()
178 code = COAP_RESPONSE_CODE(503); in hnd_put_resource()
220 response->hdr->code = COAP_RESPONSE_CODE(202); in hnd_delete_resource()
233 response->hdr->code = COAP_RESPONSE_CODE(205); in hnd_get_rd()
406 response->hdr->code = COAP_RESPONSE_CODE(500); in hnd_post_rd()
520 response->hdr->code = COAP_RESPONSE_CODE(201); in hnd_post_rd()
Dclient.c305 ((Pdu)->hdr->code == COAP_RESPONSE_CODE(201) || \
306 (Pdu)->hdr->code == COAP_RESPONSE_CODE(204)))
/net-tools-3.4.0/libcoap/examples/contiki/
Dserver.c108 my_clock_base ? COAP_RESPONSE_CODE(205) : COAP_RESPONSE_CODE(404); in hnd_get_time()