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

Method SendErrorResponse

Modules/RESTAPI/src/mitkRenderingController.cpp:2301–2305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2299}
2300
2301void RenderingController::SendErrorResponse(httplib::Response& res, int status, const nlohmann::json& error) const
2302{
2303 res.status = status;
2304 res.set_content(error.dump(), "application/json");
2305}
2306
2307bool RenderingController::IsValidStdMultiWindowId(const std::string& id)
2308{

Callers 15

HandlePOST_updateMethod · 0.95
HandlePOST_reinitMethod · 0.95
HandleGET_editorsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected