Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FXAS21002 FXOS8700Q
coap_response.h
00001 /* 00002 * Copyright (c) 2015 ARM Limited. All rights reserved. 00003 * SPDX-License-Identifier: Apache-2.0 00004 * Licensed under the Apache License, Version 2.0 (the License); you may 00005 * not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an AS IS BASIS, WITHOUT 00012 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #ifndef COAP_RESPONSE_H 00017 #define COAP_RESPONSE_H 00018 00019 /*! \file coap_response.h 00020 * \brief CoAP response code values. 00021 */ 00022 00023 // Note: Don't put any C++ code into this file as this file is included from C sources. 00024 00025 // These values are COAP response codes. See https://tools.ietf.org/html/rfc7252#section-5.9.1 00026 typedef enum { 00027 COAP_RESPONSE_CREATED = 65, 00028 COAP_RESPONSE_DELETED = 66, 00029 COAP_RESPONSE_VALID = 67, 00030 COAP_RESPONSE_CHANGED = 68, 00031 COAP_RESPONSE_CONTENT = 69, 00032 COAP_RESPONSE_CONTINUE = 95, 00033 COAP_RESPONSE_BAD_REQUEST = 128, 00034 COAP_RESPONSE_UNAUTHORIZED = 129, 00035 COAP_RESPONSE_BAD_OPTION = 130, 00036 COAP_RESPONSE_FORBIDDEN = 131, 00037 COAP_RESPONSE_NOT_FOUND = 132, 00038 COAP_RESPONSE_METHOD_NOT_ALLOWED = 133, 00039 COAP_RESPONSE_NOT_ACCEPTABLE = 134, 00040 COAP_RESPONSE_REQUEST_ENTITY_INCOMPLETE = 136, 00041 COAP_RESPONSE_PRECONDITION_FAILED = 140, 00042 COAP_RESPONSE_REQUEST_ENTITY_TOO_LARGE = 141, 00043 COAP_RESPONSE_UNSUPPORTED_CONTENT_FORMAT = 143, 00044 COAP_RESPONSE_INTERNAL_SERVER_ERROR = 160, 00045 COAP_RESPONSE_NOT_IMPLEMENTED = 161, 00046 COAP_RESPONSE_BAD_GATEWAY = 162, 00047 COAP_RESPONSE_SERVICE_UNAVAILABLE = 163, 00048 COAP_RESPONSE_GATEWAY_TIMEOUT = 164, 00049 COAP_RESPONSE_PROXYING_NOT_SUPPORTED = 165 00050 } coap_response_code_e; 00051 #endif
Generated on Tue Jul 12 2022 20:20:58 by
