# HG changeset patch # User Sebastien Jodogne # Date 1645358370 -3600 # Node ID 3ab57510f6dd61314afd68f04a6de8d1a50aff9a # Parent 656784ac67596125acb0abbfb5e7ae9a810dbf8d# Parent 181e67f9d1297b618cc8619329aa3ada4cf6ecf2 integration mainline->proto-filter-instance-returning-error-code diff -r 181e67f9d129 -r 3ab57510f6dd OrthancFramework/Sources/DicomNetworking/IStoreRequestHandler.h diff -r 181e67f9d129 -r 3ab57510f6dd OrthancFramework/Sources/DicomNetworking/Internals/StoreScp.cpp diff -r 181e67f9d129 -r 3ab57510f6dd OrthancServer/Sources/main.cpp --- a/OrthancServer/Sources/main.cpp Sun Feb 20 12:00:14 2022 +0100 +++ b/OrthancServer/Sources/main.cpp Sun Feb 20 12:59:30 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) } };