# HG changeset patch # User Alain Mazy # Date 1585728933 -7200 # Node ID 320a2d2249024175d67100b72fa476ccb4f5ea3a # Parent c38b82bb6fd3e720f6dd6e4e617fcde723b505c1# Parent d73ce7c537c38147d7bc1f581b2f4be04e562b93 merge diff -r d73ce7c537c3 -r 320a2d224902 Core/DicomNetworking/DicomUserConnection.cpp --- a/Core/DicomNetworking/DicomUserConnection.cpp Wed Apr 01 08:33:32 2020 +0200 +++ b/Core/DicomNetworking/DicomUserConnection.cpp Wed Apr 01 10:15:33 2020 +0200 @@ -939,9 +939,22 @@ { char buf[16]; sprintf(buf, "%04X", response.DimseStatus); - throw OrthancException(ErrorCode_NetworkProtocol, - "C-MOVE SCU to AET \"" + remoteAet_ + - "\" has failed with DIMSE status 0x" + buf); + + if (response.DimseStatus == STATUS_MOVE_Failed_UnableToProcess) + { + throw OrthancException(ErrorCode_NetworkProtocol, + HttpStatus_422_UnprocessableEntity, + "C-MOVE SCU to AET \"" + remoteAet_ + + "\" has failed with DIMSE status 0x" + buf + + " (unable to process - resource not found ?)" + ); + } + else + { + throw OrthancException(ErrorCode_NetworkProtocol, + "C-MOVE SCU to AET \"" + remoteAet_ + + "\" has failed with DIMSE status 0x" + buf); + } } }