summaryrefslogtreecommitdiffstats
path: root/redfish-core/include
diff options
context:
space:
mode:
authorJason M. Bills <jason.m.bills@linux.intel.com>2018-10-30 12:05:01 -0700
committerEd Tanous <ed.tanous@intel.com>2018-10-31 20:22:32 +0000
commitcc9139ec3fe5e354d046d5e00f33a5e97426924e (patch)
tree23cede1da2760b927487c14c544872c78d531ed5 /redfish-core/include
parent66ac2b8ca5bfc8d2a3529969ee17f7e2eef2e7ff (diff)
downloadbmcweb-cc9139ec3fe5e354d046d5e00f33a5e97426924e.tar.gz
bmcweb-cc9139ec3fe5e354d046d5e00f33a5e97426924e.zip
Update Redfish to Base.1.4.0 message registry
Update the Redfish error_messages from Base.1.2.0 to Base.1.4.0 from the Redfish standard registries. Change-Id: I771b119372fd995bd1dc4065830485b6a848f086 Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Diffstat (limited to 'redfish-core/include')
-rw-r--r--redfish-core/include/error_messages.hpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/redfish-core/include/error_messages.hpp b/redfish-core/include/error_messages.hpp
index 32e7505..f404de3 100644
--- a/redfish-core/include/error_messages.hpp
+++ b/redfish-core/include/error_messages.hpp
@@ -294,6 +294,26 @@ void stringValueTooLong(crow::Response& res, const std::string& arg1,
const int& arg2);
/**
+ * @brief Formats SessionTerminated message into JSON
+ * Message body: "The session was successfully terminated."
+ *
+ *
+ * @returns Message SessionTerminated formatted to JSON */
+void sessionTerminated(crow::Response& res);
+
+/**
+ * @brief Formats ResourceTypeIncompatible message into JSON
+ * Message body: "The @odata.type of the request body <arg1> is incompatible
+ * with the @odata.type of the resource which is <arg2>."
+ *
+ * @param[in] arg1 Parameter of message that will replace %1 in its body.
+ * @param[in] arg2 Parameter of message that will replace %2 in its body.
+ *
+ * @returns Message ResourceTypeIncompatible formatted to JSON */
+void resourceTypeIncompatible(crow::Response& res, const std::string& arg1,
+ const std::string& arg2);
+
+/**
* @brief Formats PropertyValueTypeError message into JSON
* Message body: "The value <arg1> for the property <arg2> is of a different
* type than the property can accept."
@@ -489,6 +509,15 @@ void success(crow::Response& res, const std::string& fieldPath);
void created(crow::Response& res);
/**
+ * @brief Formats NoOperation message into JSON
+ * Message body: "The request body submitted contain no data to act upon and
+ * no changes to the resource took place."
+ *
+ *
+ * @returns Message NoOperation formatted to JSON */
+void noOperation(crow::Response& res);
+
+/**
* @brief Formats PropertyUnknown message into JSON
* Message body: "The property <arg1> is not in the list of valid properties for
* the resource."
OpenPOWER on IntegriCloud