nRF51 IoT SDK
|
CoAP message and response codes. More...
Macros | |
#define | COAP_CODE(c, dd) (((c & 0x7) << 5) | (dd & 0x1F)) |
Enumerations | |
enum | coap_msg_code_t { COAP_CODE_EMPTY_MESSAGE = COAP_CODE(0,00), COAP_CODE_GET = COAP_CODE(0,01), COAP_CODE_POST = COAP_CODE(0,02), COAP_CODE_PUT = COAP_CODE(0,03), COAP_CODE_DELETE = COAP_CODE(0,04), COAP_CODE_201_CREATED = COAP_CODE(2,01), COAP_CODE_202_DELETED = COAP_CODE(2,02), COAP_CODE_203_VALID = COAP_CODE(2,03), COAP_CODE_204_CHANGED = COAP_CODE(2,04), COAP_CODE_205_CONTENT = COAP_CODE(2,05), COAP_CODE_400_BAD_REQUEST = COAP_CODE(4,00), COAP_CODE_401_UNAUTHORIZED = COAP_CODE(4,01), COAP_CODE_402_BAD_OPTION = COAP_CODE(4,02), COAP_CODE_403_FORBIDDEN = COAP_CODE(4,03), COAP_CODE_404_NOT_FOUND = COAP_CODE(4,04), COAP_CODE_405_METHOD_NOT_ALLOWED = COAP_CODE(4,05), COAP_CODE_406_NOT_ACCEPTABLE = COAP_CODE(4,06), COAP_CODE_412_PRECONDITION_FAILED = COAP_CODE(4,12), COAP_CODE_413_REQUEST_ENTITY_TOO_LARGE = COAP_CODE(4,13), COAP_CODE_415_UNSUPPORTED_CONTENT_FORMAT = COAP_CODE(4,15), COAP_CODE_500_INTERNAL_SERVER_ERROR = COAP_CODE(5,00), COAP_CODE_501_NOT_IMPLEMENTED = COAP_CODE(5,01), COAP_CODE_502_BAD_GATEWAY = COAP_CODE(5,02), COAP_CODE_503_SERVICE_UNAVAILABLE = COAP_CODE(5,03), COAP_CODE_504_GATEWAY_TIMEOUT = COAP_CODE(5,04), COAP_CODE_505_PROXYING_NOT_SUPPORTED = COAP_CODE(5,05) } |
CoAP Message codes. | |
CoAP message and response codes.