new unsupported request common error
A common use case is where an interface or property does not support all
of the possible options to it. Create a common error for these
scenarios.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I36b09f73adfed9244976ce21c70d02bae61bba01
diff --git a/xyz/openbmc_project/Common.errors.yaml b/xyz/openbmc_project/Common.errors.yaml
index 288aa7c..c59f7fc 100644
--- a/xyz/openbmc_project/Common.errors.yaml
+++ b/xyz/openbmc_project/Common.errors.yaml
@@ -16,3 +16,5 @@
description: The resource is not found.
- name: Unavailable
description: The service is temporarily unavailable.
+- name: UnsupportedRequest
+ description: The request is unsupported.
diff --git a/xyz/openbmc_project/Common.metadata.yaml b/xyz/openbmc_project/Common.metadata.yaml
index a90da83..f4c3bdd 100644
--- a/xyz/openbmc_project/Common.metadata.yaml
+++ b/xyz/openbmc_project/Common.metadata.yaml
@@ -23,3 +23,8 @@
level: INFO
- name: ResourceNotFound
level: INFO
+- name: UnsupportedRequest
+ level: INFO
+ meta:
+ - str: "REASON=%s"
+ type: string