Mercurial > hg > orthanc
diff Core/Enumerations.cpp @ 1596:f2e3d030ea59
BadJson error code
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 27 Aug 2015 15:36:43 +0200 |
parents | 9ea3d082b064 |
children | 31f4adefb88f |
line wrap: on
line diff
--- a/Core/Enumerations.cpp Thu Aug 27 14:58:58 2015 +0200 +++ b/Core/Enumerations.cpp Thu Aug 27 15:36:43 2015 +0200 @@ -133,6 +133,9 @@ case ErrorCode_UnknownDicomTag: return "Unknown DICOM tag"; + case ErrorCode_BadJson: + return "Cannot parse a JSON document"; + case ErrorCode_SQLiteNotOpened: return "SQLite: The database is not opened"; @@ -1118,6 +1121,9 @@ case ErrorCode_InexistentTag: return HttpStatus_404_NotFound; + case ErrorCode_BadJson: + return HttpStatus_400_BadRequest; + default: return HttpStatus_500_InternalServerError; }