Fix certificate replacement error code issue
We get 500 Internal Server Error when we try to replace certificate
without providing certificate but expected response is 400 Bad Request.
So fixed the issue by removal of overriding the error code.
Tested:
Response for attempt to replace certificate without certificate or
without required json key
Before changes:
500 Internal Server Error
After changes:
400 Bad Request
Change-Id: I7f672d40f73f8cd1491625ba6714bd3ad2594faf
Signed-off-by: vijayabharathi shetty <vijayabharathix.shetty@intel.com>
diff --git a/redfish-core/lib/certificate_service.hpp b/redfish-core/lib/certificate_service.hpp
index 9aa2145..5fe9008 100644
--- a/redfish-core/lib/certificate_service.hpp
+++ b/redfish-core/lib/certificate_service.hpp
@@ -474,7 +474,6 @@
certificateType))
{
BMCWEB_LOG_ERROR << "Required parameters are missing";
- messages::internalError(asyncResp->res);
return;
}