replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git] / resource / include / StringConstants.h
index f0fae04..3e366a3 100644 (file)
 
 namespace OC
 {
+
+#if defined(_WIN32)
+/** @todo: Remove temporary hacks to solve error C2059: syntax error: 'constant'*/
+#ifdef NO_ERROR
+#undef NO_ERROR
+#endif
+#ifdef DELETE
+#undef DELETE
+#endif
+#endif
+
     namespace InitException
     {
         static const char NO_ERROR[]                   = "No Error";
+        static const char INVALID_HOST[]                = "Invalid Host";
         static const char INVALID_URI[]                = "Invalid URI";
         static const char INVALID_PORT[]               = "Invalid Port";
         static const char INVALID_IP[]                 = "Invalid IP";
@@ -37,6 +49,7 @@ namespace OC
         static const char UNKNOWN_ERROR[]              = "Unknown Error";
 
         static const char STACK_INIT_ERROR[]           = "Error Initializing Stack";
+        static const char STACK_TERMINATE_ERROR[]      = "Error Terminating Stack";
         static const char NOT_CONFIGURED_AS_SERVER[]   =
                           "Cannot static construct a Server when configured as a client";
         static const char INVALID_PARAM[]              = "Invalid Param";
@@ -60,9 +73,12 @@ namespace OC
         static const char GENERAL_JSON_PARSE_FAILED[]  = "JSON Parser Error";
         static const char RESOURCE_UNREG_FAILED[]      = "Unregistering resource failed";
         static const char OPTION_ID_RANGE_INVALID[]    =
-                            "Error: OptionID valid only from 2048 to 3000 inclusive.";
+                            "Error: OptionID valid only If-Match(1), If-None-Match(5),"
+                            "Location-Path(8), Location-Query(20),"
+                            "and from 2048 to 3000 inclusive.";
         static const char NO_ERROR[]                   = "No Error";
         static const char RESOURCE_CREATED[]           = "Resource Created";
+        static const char RESOURCE_CHANGED[]           = "Resource Changed";
         static const char RESOURCE_DELETED[]           = "Resource Deleted";
         static const char INVALID_URI[]                = "Invalid URI";
         static const char INVALID_IP[]                 = "Invalid IP";
@@ -105,10 +121,26 @@ namespace OC
         static const char INVALID_ATTRIBUTE[]          = "Invalid Attribute: ";
         static const char INVALID_DEVICE_INFO[]        = "Invalid Device Information";
         static const char UNAUTHORIZED_REQUEST[]       = "Unauthorized Request";
+        static const char TOO_LARGE_REQ[]              = "Request Too Large";
         static const char PDM_DB_NOT_INITIALIZED[]     = "Provisioning DB is not initialized";
         static const char DUPLICATE_UUID[]             = "Duplicate UUID in DB";
         static const char INCONSISTENT_DB[]            = "Data in provisioning DB is inconsistent";
-
+        static const char SVR_DB_NOT_EXIST[]           = "SVR DB file is not exist.";
+        static const char AUTHENTICATION_FAILURE[]     = "Authentication failure";
+        static const char NOT_ALLOWED_OXM[]            = "Not allowed ownership transfer method";
+        static const char USER_DENIED_REQ[]            = "Request denied by User";
+        static const char NOT_ACCEPTABLE[]             = "Request not acceptable";
+        static const char PUBLISH_RESOURCE_FAILED[]    = "Publish Resource failure";
+        static const char FORBIDDEN_REQ[]              = "Forbidden request";
+        static const char INTERNAL_SERVER_ERROR[]      = "Internal server error";
+        static const char NOTIFY_ALL_OBSERVERS_FAILED[]  = "notifyAllObservers failed";
+        static const char NOTIFY_LIST_OBSERVERS_FAILED[] = "notifyListOfObservers failed";
+        static const char METHOD_NOT_ALLOWED[]         = "method not allowed";
+        static const char NOT_IMPLEMENTED[]            = "not implemented";
+        static const char BAD_GATEWAY[]                = "bad gateway";
+        static const char SERVICE_UNAVAILABLE[]        = "service not available";
+        static const char GATEWAY_TIMEOUT[]            = "gateway timeout";
+        static const char PROXY_NOT_SUPPORTED[]        = "proxy not supported";
     }
 
     namespace Error