summaryrefslogtreecommitdiff
path: root/redfish-core/include/error_messages.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core/include/error_messages.hpp')
-rw-r--r--redfish-core/include/error_messages.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/redfish-core/include/error_messages.hpp b/redfish-core/include/error_messages.hpp
index 76052fcf15..50bcfa02bc 100644
--- a/redfish-core/include/error_messages.hpp
+++ b/redfish-core/include/error_messages.hpp
@@ -1033,6 +1033,14 @@ nlohmann::json insufficientStorage();
void insufficientStorage(crow::Response& res);
+/**
+ * @brief Formats OperationNotAllowed message into JSON
+ * Message body: "he HTTP method is not allowed on this resource."
+ * @returns Message OperationNotAllowed formatted to JSON */
+nlohmann::json operationNotAllowed();
+
+void operationNotAllowed(crow::Response& res);
+
} // namespace messages
} // namespace redfish