Make PropertyNotWritable 405
forbidden (403) - "a 403 error means there is an authorization /
permission problem."
405 "Method Not Allowed" error means that the web server understands the
request but refuses to process it because the HTTP method (like GET,
POST, PUT, etc.) used in the request is not supported by the server or
the resource.".
Following a stackoverflow response here [1].
Dell mapped PropertyNotWritable to a 400 error. [2] A 400 would be my
2nd choice.
[1]: https://stackoverflow.com/questions/52892076/http-code-to-return-for-unsupported-patch
[2]: https://www.dell.com/support/manuals/en-in/idrac7-8-lifecycle-controller-v2.30.30.30/redfish_v2.30.30.30/managernetworkprotocol?guid=guid-b2be28b5-60a5-4782-83ac-3efb3af79ef2&lang=en-us
Change-Id: Iff3f773a1fdbea96d65f8b82fec75cfc34519ae0
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/scripts/parse_registries.py b/scripts/parse_registries.py
index 03e44cb..041b86e 100755
--- a/scripts/parse_registries.py
+++ b/scripts/parse_registries.py
@@ -250,7 +250,7 @@
"OperationTimeout": "internal_server_error",
"PasswordChangeRequired": None,
"PreconditionFailed": "precondition_failed",
- "PropertyNotWritable": "forbidden",
+ "PropertyNotWritable": "method_not_allowed",
"PropertyValueExternalConflict": "conflict",
"PropertyValueModified": "ok",
"PropertyValueResourceConflict": "conflict",