MCPcopy Create free account
hub / github.com/MITK/MITK / SendErrorResponse

Method SendErrorResponse

Modules/RESTAPI/src/mitkDataStorageController.cpp:715–719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

713}
714
715void DataStorageController::SendErrorResponse(httplib::Response& res, int status, const nlohmann::json& error)
716{
717 res.status = status;
718 res.set_content(error.dump(), "application/json");
719}
720
721DataStorageController::ResolveDataPathResult DataStorageController::ResolveDataPath(
722 const httplib::Request& req, const std::string& contentType)

Calls

no outgoing calls

Tested by

no test coverage detected