Mercurial > hg > orthanc
diff Core/Enumerations.cpp @ 1781:5ad4e4d92ecb
AcceptMediaDispatcher bootstrap
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 17 Nov 2015 17:46:32 +0100 |
parents | 613df4362575 |
children | 164d78911382 |
line wrap: on
line diff
--- a/Core/Enumerations.cpp Fri Nov 13 15:06:45 2015 +0100 +++ b/Core/Enumerations.cpp Tue Nov 17 17:46:32 2015 +0100 @@ -151,6 +151,9 @@ case ErrorCode_EmptyRequest: return "The request is empty"; + case ErrorCode_NotAcceptable: + return "Cannot send a response which is acceptable according to the Accept HTTP header"; + case ErrorCode_SQLiteNotOpened: return "SQLite: The database is not opened"; @@ -1131,6 +1134,9 @@ case ErrorCode_Unauthorized: return HttpStatus_401_Unauthorized; + case ErrorCode_NotAcceptable: + return HttpStatus_406_NotAcceptable; + default: return HttpStatus_500_InternalServerError; }