summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--redfish-core/lib/certificate_service.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/redfish-core/lib/certificate_service.hpp b/redfish-core/lib/certificate_service.hpp
index 4a077c8..d3eaec1 100644
--- a/redfish-core/lib/certificate_service.hpp
+++ b/redfish-core/lib/certificate_service.hpp
@@ -257,7 +257,8 @@ static void getCertificateProperties(
if (ec)
{
BMCWEB_LOG_ERROR << "DBUS response error: " << ec;
- messages::internalError(asyncResp->res);
+ messages::resourceNotFound(asyncResp->res, name,
+ std::to_string(certId));
return;
}
asyncResp->res.jsonValue = {
@@ -448,7 +449,8 @@ class CertificateActionsReplaceCertificate : public Node
if (ec)
{
BMCWEB_LOG_ERROR << "DBUS response error: " << ec;
- messages::internalError(asyncResp->res);
+ messages::resourceNotFound(asyncResp->res, name,
+ std::to_string(id));
return;
}
getCertificateProperties(asyncResp, objectPath, service, id,
OpenPOWER on IntegriCloud