# HG changeset patch # User Sebastien Jodogne # Date 1645373081 -3600 # Node ID 260377d84e9f254f5bdd0d303ce5d63bc1ab5001 # Parent 3ab57510f6dd61314afd68f04a6de8d1a50aff9a# Parent df86d2505df898be0f983856b7ea9898fae60263 integration mainline->proto-filter-instance-returning-error-code diff -r df86d2505df8 -r 260377d84e9f OrthancFramework/Sources/DicomNetworking/IStoreRequestHandler.h diff -r df86d2505df8 -r 260377d84e9f OrthancFramework/Sources/DicomNetworking/Internals/StoreScp.cpp diff -r df86d2505df8 -r 260377d84e9f OrthancServer/Sources/main.cpp --- a/OrthancServer/Sources/main.cpp Sun Feb 20 16:57:43 2022 +0100 +++ b/OrthancServer/Sources/main.cpp Sun Feb 20 17:04:41 2022 +0100 @@ -87,10 +87,18 @@ std::string id; ServerContext::StoreResult result = context_.Store(id, *toStore, StoreInstanceMode_Default); - return result.GetCStoreStatusCode(); + + if (result.GetStatus() == StoreStatus_FilteredOut) + { + return STATUS_STORE_Refused_OutOfResources; // C-Store "Out of Resources" error code (0xa700) + } + else + { + return result.GetCStoreStatusCode(); + } } - return STATUS_STORE_Error_CannotUnderstand; + return STATUS_STORE_Error_CannotUnderstand; // C-Store "Cannot understand" error code (0xc000) } };