Update doc API should return 200 status code, and not 201.

This commit is contained in:
Kishore Nallan 2023-12-10 08:52:56 +05:30
parent f87404de37
commit 5d64d7d090

View File

@ -1283,7 +1283,7 @@ bool patch_update_document(const std::shared_ptr<http_req>& req, const std::shar
return false;
}
res->set_201(upserted_doc_op.get().dump(-1, ' ', false, nlohmann::detail::error_handler_t::ignore));
res->set_200(upserted_doc_op.get().dump(-1, ' ', false, nlohmann::detail::error_handler_t::ignore));
return true;
}