summaryrefslogtreecommitdiff
path: root/redfish-core/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core/src/utils')
-rw-r--r--redfish-core/src/utils/json_utils.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/redfish-core/src/utils/json_utils.cpp b/redfish-core/src/utils/json_utils.cpp
index b4bdba6d35..fea4d38964 100644
--- a/redfish-core/src/utils/json_utils.cpp
+++ b/redfish-core/src/utils/json_utils.cpp
@@ -15,7 +15,6 @@
*/
#include "utils/json_utils.hpp"
#include <error_messages.hpp>
-#include <crow/http_codes.h>
namespace redfish {
@@ -440,7 +439,7 @@ bool processJsonFromRequest(crow::response& res, const crow::request& req,
if (reqJson.is_discarded()) {
messages::addMessageToErrorJson(res.json_value, messages::malformedJSON());
- res.code = static_cast<int>(HttpRespCode::BAD_REQUEST);
+ res.result(boost::beast::http::status::bad_request);
res.end();
return false;