Mercurial > hg > orthanc
diff OrthancFramework/Sources/Enumerations.cpp @ 5383:33410f14033b
new error code ForbiddenAccess
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 06 Sep 2023 15:57:11 +0200 |
parents | 303e930fff0f |
children | 08b5516c6e5e |
line wrap: on
line diff
--- a/OrthancFramework/Sources/Enumerations.cpp Wed Sep 06 13:05:42 2023 +0200 +++ b/OrthancFramework/Sources/Enumerations.cpp Wed Sep 06 15:57:11 2023 +0200 @@ -199,6 +199,9 @@ case ErrorCode_MainDicomTagsMultiplyDefined: return "A main DICOM Tag has been defined multiple times for the same resource level"; + case ErrorCode_ForbiddenAccess: + return "Access to a resource is forbidden"; + case ErrorCode_SQLiteNotOpened: return "SQLite: The database is not opened"; @@ -2278,6 +2281,9 @@ case ErrorCode_Revision: return HttpStatus_409_Conflict; + case ErrorCode_ForbiddenAccess: + return HttpStatus_403_Forbidden; + case ErrorCode_CreateDicomNotString: return HttpStatus_400_BadRequest;