39 #ifndef REST_CONSTANTS_H_
40 #define REST_CONSTANTS_H_
46 const unsigned int OK;
47 const unsigned int CREATED;
48 const unsigned int CHANGED;
49 const unsigned int DELETED;
50 const unsigned int NOT_MODIFIED;
52 const unsigned int BAD_REQUEST;
53 const unsigned int UNAUTHORIZED;
54 const unsigned int BAD_OPTION;
55 const unsigned int FORBIDDEN;
56 const unsigned int NOT_FOUND;
57 const unsigned int METHOD_NOT_ALLOWED;
58 const unsigned int NOT_ACCEPTABLE;
59 const unsigned int REQUEST_ENTITY_TOO_LARGE;
60 const unsigned int UNSUPPORTED_MEDIA_TYPE;
62 const unsigned int INTERNAL_SERVER_ERROR;
63 const unsigned int NOT_IMPLEMENTED;
64 const unsigned int BAD_GATEWAY;
65 const unsigned int SERVICE_UNAVAILABLE;
66 const unsigned int GATEWAY_TIMEOUT;
67 const unsigned int PROXYING_NOT_SUPPORTED;
75 unsigned int TEXT_PLAIN;
76 unsigned int TEXT_XML;
77 unsigned int TEXT_CSV;
78 unsigned int TEXT_HTML;
79 unsigned int IMAGE_GIF;
80 unsigned int IMAGE_JPEG;
81 unsigned int IMAGE_PNG;
82 unsigned int IMAGE_TIFF;
83 unsigned int AUDIO_RAW;
84 unsigned int VIDEO_RAW;
85 unsigned int APPLICATION_LINK_FORMAT;
86 unsigned int APPLICATION_XML;
87 unsigned int APPLICATION_OCTET_STREAM;
88 unsigned int APPLICATION_RDF_XML;
89 unsigned int APPLICATION_SOAP_XML;
90 unsigned int APPLICATION_ATOM_XML;
91 unsigned int APPLICATION_XMPP_XML;
92 unsigned int APPLICATION_EXI;
93 unsigned int APPLICATION_FASTINFOSET;
94 unsigned int APPLICATION_SOAP_FASTINFOSET;
95 unsigned int APPLICATION_JSON;
96 unsigned int APPLICATION_X_OBIX_BINARY;
106 METHOD_GET = (1 << 0),
107 METHOD_POST = (1 << 1),
108 METHOD_PUT = (1 << 2),
109 METHOD_DELETE = (1 << 3),
112 HAS_SUB_RESOURCES = (1 << 4),
113 IS_SEPARATE = (1 << 5),
114 IS_OBSERVABLE = (1 << 6),
115 IS_PERIODIC = (1 << 7)
rest_resource_flags_t
Resource flags for allowed methods and special functionalities.
List of Content-Formats which are Internet Media Types plus encoding.
Generic status codes that are mapped to either HTTP or CoAP codes.