Return Codes

The following table contains the Error Codes for the DICOM C DLL:

 

0

DICOM_SUCCESS

1

DICOM_ERROR_LOCKED - Dicom support is locked. You must unlock the Medical Support.

2

DICOM_ERROR_MEMORY - Insufficient memory.

3

DICOM_ERROR_OPEN - Error opening the file.

4

DICOM_ERROR_READ - Error reading the file.

5

DICOM_ERROR_WRITE - Error writing to a file.

6

DICOM_ERROR_SEEK - Error during search.

7

DICOM_ERROR_END - Error - end of file.

8

DICOM_ERROR_FORMAT - Improper file format.

9

DICOM_ERROR_PARAMETER - Incorrect parameter.

10

DICOM_ERROR_IMAGE - Improper image.

11

DICOM_ERROR_COMPRESSION - Improper compression.

12

DICOM_ERROR_PHOTOMETRIC - Improper photometric type.

13

DICOM_ERROR_CONVERSION - Error converting the file.

14

DICOM_ERROR_RANGE - Out of range.

15

DICOM_ERROR_BITSPERPIXEL - Improper bits per pixel.

16

DICOM_ERROR_QFACTOR - Improper quality factor.

17

DICOM_ERROR_PDU_TYPE - Improper PDU type.

18

DICOM_ERROR_PDU_LENGTH - Improper PDU length.

19

DICOM_ERROR_PDU_ID - Improper PDU ID.

29

DICOM_ERROR_NET_FAILURE - Network failure.

30

DICOM_ERROR_NET_ACCESS - The address is a broadcast address

31

DICOM_ERROR_NET_ADDRESS_IN_USE - The address is already in use

32

DICOM_ERROR_NET_ADDRESS_NOT_AVAILABLE - The address is not available from the local computer

33

DICOM_ERROR_NET_ADDRESS_NOT_SUPPORTED - The address family is not supported

34

DICOM_ERROR_NET_CONNECTION_ABORTED - The virtual circuit was aborted

35

DICOM_ERROR_NET_CONNECTION_REFUSED - The attempt to connect was forcefully rejected

36

DICOM_ERROR_NET_CONNECTION_RESET - The virtual circuit was reset by the remote side

37

DICOM_ERROR_NET_DESTINATION_REQUIRED - A destination address is required

38

DICOM_ERROR_NET_ARGUMENT_INCORRECT - The namelen argument is incorrect

39

DICOM_ERROR_NET_IN_PROGRESS - A blocking operation is in progress

40

DICOM_ERROR_NET_BLOCKING_CANCELED - The blocking call was canceled

41

DICOM_ERROR_NET_INVALID - The socket has not been bound with bind

42

DICOM_ERROR_NET_IS_CONNECTED - The socket is already connected

43

DICOM_ERROR_NET_NO_MORE_FILE - No more file descriptors are available

44

DICOM_ERROR_NET_MESSAGE_SIZE - The datagram is larger than the maximum supported

45

DICOM_ERROR_NET_DOWN - The network subsystem has failed

46

DICOM_ERROR_NET_RESET - The connection must be reset

47

DICOM_ERROR_NET_UN_REACH - The network can't be reached from this host at this time

48

DICOM_ERROR_NET_NO_BUFFERS - No buffer space is available

49

DICOM_ERROR_NET_NOT_CONNECTED - The socket is not connected

50

DICOM_ERROR_NET_NOT_SOCKET - The descriptor is not a socket

51

DICOM_ERROR_NET_OPERATION_NOT_SUPPORTED - The type does not support connection-oriented service

52

DICOM_ERROR_NET_PROTOCOL_NOT_SUPPORTED - The specified protocol is not supported

53

DICOM_ERROR_NET_PROTOCOL_TYPE - The specified protocol is the wrong type

54

DICOM_ERROR_NET_SHUTDOWN - The socket has been shut down

55

DICOM_ERROR_NET_SOCKET_NOT_SUPPORTED - The type is not supported in this address family

56

DICOM_ERROR_NET_TIME_OUT - Attempt to connect timed out without establishing a connection

57

DICOM_ERROR_NET_WOULD_BLOCK - The socket is marked as nonblocking and the requested operation would block

58

DICOM_ERROR_NET_HOST_NOT_FOUND - Authoritative Answer Host not found

59

DICOM_ERROR_NET_NO_DATA - Valid name, no data record of requested type

60

DICOM_ERROR_NET_NO_RECOVERY - Nonrecoverable errors

61

DICOM_ERROR_NET_NOT_INITIALISED - The system was not initialized

62

DICOM_ERROR_NET_SYSTEM_NOT_READY - Not ready for network communication

63

DICOM_ERROR_NET_TRY_AGAIN - Non-Authoritative Host not found, or server failed

64

DICOM_ERROR_NET_VERSION_NOT_SUPPORTED - The version requested is not provided by this implementation

65

DICOM_ERROR_NET_SECURITY_BREACH - There is a cryptographic error.

66

DICOM_ERROR_TLS - TLS internal error

67

DICOM_ERROR_SECURITY_LOCKED - DICOM Security Features are locked

68

DICOM_ERROR_TLS_DLL_NOT_LOADED - TLS and/or CRY DLL not loaded

69

DICOM_ERROR_BAD_SECURE_MODE - ISCL operation attempted on TLS object

70

DICOM_ERROR_ANN - Annotation error

71

DICOM_ERROR_ANN_LOCKED - Annotation support is locked

72

DICOM_ERROR_ANN_MISSING - Annotation dll is missing

73

DICOM_ERROR_TAG_ALREADY_EXISTS - LEAD private creator element already exists

74

DICOM_ERROR_ANN_NO_EXIST - Requested annotation file or page does not exist

100

DICOM_ERROR_ISCL_BAD_OPTION - Bad option

101

DICOM_ERROR_ISCL_BAD_LENGTH - Bad length

102

DICOM_ERROR_ISCL_LOCAL_ICCARD - Error in the local IC card

103

DICOM_ERROR_ISCL_REMOTE_ICCARD - Error in the remote IC card

104

DICOM_ERROR_ISCL_BAD_MSGID - Bad message ID

105

DICOM_ERROR_ISCL_BAD_VERSION - Bad version number

106

DICOM_ERROR_ISCL_BAD_MUTUAL_AUTH_METHOD - Bad mutual authentication mode

107

DICOM_ERROR_ISCL_BAD_COMMBLOCK_LENGTH - Bad communication block length

108

DICOM_ERROR_ISCL_RECEIVED_NAK - Received a 'Not Acknowledged' message

109

DICOM_ERROR_ISCL_MSG_TRANSMISSION - Error in the message transmission

110

DICOM_ERROR_ISCL_PEER_SMALL_LENGTH - Peer small length

111

DICOM_ERROR_ISCL_LOCAL_SMALL_LENGTH - Local small length

112

DICOM_ERROR_ISCL_DECRYPT - Decryption error

113

DICOM_ERROR_ISCL_BAD_MAC - Bad message authentication code

114

DICOM_ERROR_ISCL_RND_NO_FOR_SESSION_KEY_EXPECTED - Round number for session key expected.

115

DICOM_ERROR_ISCL_PEER_REFUSE_CLOSE - Peer refused close request

128

DICOM_ERROR_TLS_CLOSE_NOTIFY - Error in close notification

129

DICOM_ERROR_TLS_UNEXPECTED_MESSAGE - Unexpected message

130

DICOM_ERROR_TLS_BAD_RECORD_MAC - Bad record message authentication code

131

DICOM_ERROR_TLS_DECRYPT_FAILED - Decryption failed

132

DICOM_ERROR_TLS_RECORD_OVERFLOW - Record overflow

133

DICOM_ERROR_TLS_DECOMPRESSION_FAILURE - Decompression failed

134

DICOM_ERROR_TLS_HANDSHAKE_FAILURE - Handshake failed

135

DICOM_ERROR_TLS_BAD_CERTIFICATE - Bad certificate

136

DICOM_ERROR_TLS_UNSUPPORTED_CERTIFICATE - Unsupported certificate

137

DICOM_ERROR_TLS_CERTIFICATE_REVOKED - Certificate revoked

138

DICOM_ERROR_TLS_CERTIFICATE_EXPIRED - Certificate Expired

139

DICOM_ERROR_TLS_CERTIFICATE_UNKNOWN - Certificate unknown

140

DICOM_ERROR_TLS_ILLEGAL_PARAMETER - Illegal parameter

141

DICOM_ERROR_TLS_UNKNOWN_CA - Unknown certificate authenticator

142

DICOM_ERROR_TLS_ACCESS_DENIED - Access denied

143

DICOM_ERROR_TLS_DECODE_ERROR - Error decoding

144

DICOM_ERROR_TLS_DECRYPT_ERROR - Decryption error

145

DICOM_ERROR_TLS_EXPORT_RESTRICTION - Export restriction

146

DICOM_ERROR_TLS_PROTOCOL_VERSION - Wrong protocol version

147

DICOM_ERROR_TLS_INSUFFICIENT_SECURITY - Insufficient security

148

DICOM_ERROR_TLS_INTERNAL_ERROR - Internal error Call LEAD

149

DICOM_ERROR_TLS_USER_CANCELED - User cancelled

150

DICOM_ERROR_TLS_NO_RENEGOTIATION - No renegotiation

151

DICOM_ERROR_TLS_NO_KEEPALIVE - "Windows Sockets provider" does not support the use of keep-alives.

152

DICOM_ERROR_TLS_CLOSED_CONTROLLED - An error occurred and the connection was closed gracefully.

160

DICOM_ERROR_TLS_UNABLE_TO_GET_ISSUER_CERT - "Unable to get issuer certificate"

161

DICOM_ERROR_TLS_UNABLE_TO_GET_CRL - "Unable to get CRL"

162

DICOM_ERROR_TLS_UNABLE_TO_DECRYPT_CERT_SIGNATURE - "Unable to decrypt certificate signature"

163

DICOM_ERROR_TLS_UNABLE_TO_DECRYPT_CRL_SIGNATURE - "unable to decrypt CRL signature"

164

DICOM_ERROR_TLS_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY - "unable to decode issuer public key"

165

DICOM_ERROR_TLS_CERT_SIGNATURE_FAILURE - "Certificate signature failure"

166

DICOM_ERROR_TLS_CRL_SIGNATURE_FAILURE - "Error TLS CRL Signature Failure"

167

DICOM_ERROR_TLS_CERT_NOT_YET_VALID - "Error TLS Certificate Not Yet Valid"

168

DICOM_ERROR_TLS_CERT_HAS_EXPIRED - "Error TLS Certificate Has Expired"

169

DICOM_ERROR_TLS_CRL_NOT_YET_VALID - "Error TLS CRL Not Yet Valid"

170

DICOM_ERROR_TLS_CRL_HAS_EXPIRED - "Error TLS CRL Has Expired"

171

DICOM_ERROR_TLS_ERROR_IN_CERT_NOT_BEFORE_FIELD - "Error TLS Error In Certificate Not Before Field"

172

DICOM_ERROR_TLS_ERROR_IN_CERT_NOT_AFTER_FIELD - "Error TLS Error In Certificate Not After Field"

173

DICOM_ERROR_TLS_ERROR_IN_CRL_LAST_UPDATE_FIELD - "Error TLS Error In CRL Last Update Field"

174

DICOM_ERROR_TLS_ERROR_IN_CRL_NEXT_UPDATE_FIELD - "Error TLS Error In CRL Next Update Field"

175

DICOM_ERROR_TLS_OUT_OF_MEM - "Error TLS Out Of Memory"

176

DICOM_ERROR_TLS_DEPTH_ZERO_SELF_SIGNED_CERT - "Error TLS Depth Zero Self Signed Certificate"

177

DICOM_ERROR_TLS_SELF_SIGNED_CERT_IN_CHAIN - "Error TLS Self Signed Certificate In Chain"

178

DICOM_ERROR_TLS_UNABLE_TO_GET_ISSUER_CERT_LOCALLY - "Error TLS Unable To Get Issuer Certificate Locally"

179

DICOM_ERROR_TLS_UNABLE_TO_VERIFY_LEAF_SIGNATURE - "Error TLS Unable To Verify Leaf Signature"

180

DICOM_ERROR_TLS_CERT_CHAIN_TOO_LONG - "Error TLS Certificate Chain Too Long"

181

DICOM_ERROR_TLS_CERT_REVOKED - "Error TLS Certificate Revoked"

182

DICOM_ERROR_TLS_INVALID_CA - "Error TLS Invalid CA"

183

DICOM_ERROR_TLS_PATH_LENGTH_EXCEEDED - "Error TLS Path Length Exceeded"

184

DICOM_ERROR_TLS_INVALID_PURPOSE - "Error TLS Invalid Purpose"

185

DICOM_ERROR_TLS_CERT_UNTRUSTED - "Error TLS Certificate Untrusted"

186

DICOM_ERROR_TLS_CERT_REJECTED - "Error TLS Certificate Rejected"

187

DICOM_ERROR_TLS_SUBJECT_ISSUER_MISMATCH - "Error TLS Subject Issuer Mismatch"

188

DICOM_ERROR_TLS_AKID_SKID_MISMATCH - "Error TLS AKID SKID Mismatch"

189

DICOM_ERROR_TLS_AKID_ISSUER_SERIAL_MISMATCH - "Error TLS AKID Issuer Serial Mismatch"

190

DICOM_ERROR_TLS_KEYUSAGE_NO_CERTSIGN - "Error TLS Keyusage No Certsign"

191

DICOM_ERROR_TLS_APPLICATION_VERIFICATION - "Error TLS Application Verification"

192

DICOM_ERROR_TLS_INVALID_CTX - "Error TLS Invalid SSL Context"

193

DICOM_ERROR_TLS_INVALID_CTX_VERIFY_DEPTH - "Error TLS Invalid SSL Context Verify Depth"

194

DICOM_ERROR_TLS_INVALID_CTX_VERIFY_MODE - "Error TLS Invalid SSL Context Verify Mode"

195

DICOM_ERROR_TLS_INVALID_CTX_CAFILE - "Error TLS Invalid SSL Context CA File"

196

DICOM_ERROR_TLS_INVALID_CTX_OPTIONS - "Error TLS Invalid SSL Context Options"

200

DICOM_ERROR_DICOMDIR_FOLDER - The destination folder of the DICOMDIR File is not specified, or the specified folder doesn©t exist.

201

DICOM_ERROR_FILE - The file doesn©t reside in the destination folder of the DICOMDIR File or in a subfolder of it, or the file doesn©t exist.

202

DICOM_ERROR_FILEID - The File ID of the specified file is invalid. Refer to the RejectInvalidFileID property for more information.

203

DICOM_ERROR_J2K_LOCKED - J2K support is locked.

204

DICOM_ERROR_LUT_DESCRIPTOR_MISSING © LUT descriptor is missing.

205

DICOM_ERROR_MODALITY_LUT_MISSING © Modality LUT is missing.

206

DICOM_ERROR_BAD_PIXEL_REPRESENTATION © Bad pixel representation.

207

DICOM_ERROR_PALETTECOLORLUTDATAMISSING © Palette color LUT is missing.

208

DICOM_ERROR_FEATURE_NOT_SUPPORTED © Feature not supported.

209

DICOM_ERROR_VOI_LUT_MISSING © VOI LUT is missing.

210

DICOM_ERROR_OVERLAY_ATTRIBUTES_MISSING © Overlay attributes are missing.

211

DICOM_ERROR_OVERLAY_ACTIVATIONLAYER_MISSING © Overlay activation layer element is missing.

212

DICOM_ERROR_OVERLAY_DATA_MISSING © Overlay data element is missing.

213

DICOM_ERROR_INVALID_STRUCT_SIZE © Invalid structure size.

214

DICOM_ERROR_NULL_PTR © NULL pointer.

215

DICOM_ERROR_LTIMG_MISSING © LTIMG DLL is missing.

216

DICOM_ERROR_CRYPTO_LIB_LOAD_FAILED - Failed to load the underlying cryptographic library

217

DICOM_ERROR_INVALID_MAC_TRANSFER_SYNTAX -Unable to change to the MAC Calculation Transfer Syntax

218

DICOM_ERROR_PRIVATE_KEY_LOAD_FAILED - Failed to load the private key from the specified file

219

DICOM_ERROR_CERTIFICATE_LOAD_FAILED - Failed to load the digital certificate from the specified file

220

DICOM_ERROR_CERTIFICATE_READ_FAILED - Failed to read the digital certificate from the Data Set

221

DICOM_ERROR_KEYS_MISMATCH - The specified private key doesn©t match the public key in the specified digital certificate

222

DICOM_ERROR_INVALID_MAC_ALGORITHM - The specified Digital Signature Security Profile doesn©t allow the use of the specified MAC Algorithm

223

DICOM_ERROR_INVALID_ENCRYPTION_ALGORITHM - The specified Digital Signature Security Profile doesn©t allow the use of the encryption algorithm implied by the specified keys

224

DICOM_ERROR_MAC_ID_NUMBER_ALLOCATE_FAILED - All possible values for the MAC ID Number are already used in the associated MAC Parameters Sequence

225

DICOM_ERROR_CRYPTO_LIB_FAILURE - The underlying cryptographic library failed

226

DICOM_ERROR_MAC_PARAMETER_MISSING - Failed to verify the Digital Signature because one or more of the MAC Parameters are missing

227

DICOM_ERROR_MAC_ID_NUMBER_MISSING - Failed to verify the Digital Signature because no MAC Parameters Sequence Item is referenced

228

DICOM_ERROR_UNKNOWN_MAC_ALGORITHM - Failed to verify the Digital Signature because the specified MAC Algorithm is unknown

229

DICOM_ERROR_SIGNATURE_MISSING - Failed to verify the Digital Signature because the Signature is missing

230

DICOM_ERROR_INVALID_SIGNATURE - The Digital Signature is invalid or at least one of the Digital Signatures in the Data Set is invalid

231

DICOM_ERROR_CMP_FILTER_MISSING - LFCMP DLL is missing.

232

DICOM_ERROR_J2K_FILTER_MISSING - LFJ2K DLL is missing.

233

DICOM_ERROR_CANT_REPLACE_EXISTING_CHARACTER_SET - Can©t replace existing character set.

301

DICOM_ERROR_PRINTSCU_CLASS_NOT_SUPPORTED - The required SOP/Meta SOP Class is not supported on the Association (refer to the method itself)

302

DICOM_ERROR_PRINTSCU_TIME_OUT - Timed out (refer to the Timeout property)

303

DICOM_ERROR_PRINTSCU_ASSOCIATE_RQ_REJECTED - The Association request was rejected by the Print SCP (refer to the Associate method)

304

DICOM_ERROR_PRINTSCU_FAILURE_STATUS - The response of the Print SCP specifies a Failure status code (the operation was not performed)

305

DICOM_ERROR_SOP_INSTANCE_UID_ALREADY_EXISTS - SOP Instance UID already present.

306

DICOM_ERROR_INCOMPATIBLE_LIST_OF_IMAGES - When inserting one more images into a DICOM dataset, the bbp, width, height must all be the same for each image.

307

DICOM_IPV4_IPV6_CONFLICT - Both IPv4 and IPv6 addresses have been passed to the same function.