Mistake on this page? Email us
coap_response.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 ARM Limited. All rights reserved.
3  * SPDX-License-Identifier: Apache-2.0
4  * Licensed under the Apache License, Version 2.0 (the License); you may
5  * not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS, WITHOUT
12  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #ifndef COAP_RESPONSE_H
17 #define COAP_RESPONSE_H
18 
23 // Note: Don't put any C++ code into this file as this file is included from C sources.
24 
25 // These values are COAP response codes. See https://tools.ietf.org/html/rfc7252#section-5.9.1
26 typedef enum {
27  COAP_RESPONSE_CREATED = 65,
28  COAP_RESPONSE_DELETED = 66,
29  COAP_RESPONSE_VALID = 67,
30  COAP_RESPONSE_CHANGED = 68,
31  COAP_RESPONSE_CONTENT = 69,
32  COAP_RESPONSE_CONTINUE = 95,
33  COAP_RESPONSE_BAD_REQUEST = 128,
34  COAP_RESPONSE_UNAUTHORIZED = 129,
35  COAP_RESPONSE_BAD_OPTION = 130,
36  COAP_RESPONSE_FORBIDDEN = 131,
37  COAP_RESPONSE_NOT_FOUND = 132,
38  COAP_RESPONSE_METHOD_NOT_ALLOWED = 133,
39  COAP_RESPONSE_NOT_ACCEPTABLE = 134,
40  COAP_RESPONSE_REQUEST_ENTITY_INCOMPLETE = 136,
41  COAP_RESPONSE_PRECONDITION_FAILED = 140,
42  COAP_RESPONSE_REQUEST_ENTITY_TOO_LARGE = 141,
43  COAP_RESPONSE_UNSUPPORTED_CONTENT_FORMAT = 143,
44  COAP_RESPONSE_INTERNAL_SERVER_ERROR = 160,
45  COAP_RESPONSE_NOT_IMPLEMENTED = 161,
46  COAP_RESPONSE_BAD_GATEWAY = 162,
47  COAP_RESPONSE_SERVICE_UNAVAILABLE = 163,
48  COAP_RESPONSE_GATEWAY_TIMEOUT = 164,
49  COAP_RESPONSE_PROXYING_NOT_SUPPORTED = 165
50 } coap_response_code_e;
51 #endif