Mercurial > hg > orthanc
diff Core/Enumerations.cpp @ 1606:31f4adefb88f
issuing HTTP requests from the plugin SDK
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 01 Sep 2015 17:37:26 +0200 |
parents | f2e3d030ea59 |
children | 2dff2bdffdb8 |
line wrap: on
line diff
--- a/Core/Enumerations.cpp Tue Sep 01 16:41:16 2015 +0200 +++ b/Core/Enumerations.cpp Tue Sep 01 17:37:26 2015 +0200 @@ -136,6 +136,9 @@ case ErrorCode_BadJson: return "Cannot parse a JSON document"; + case ErrorCode_Unauthorized: + return "Bad credentials were provided to an HTTP request"; + case ErrorCode_SQLiteNotOpened: return "SQLite: The database is not opened"; @@ -1124,6 +1127,9 @@ case ErrorCode_BadJson: return HttpStatus_400_BadRequest; + case ErrorCode_Unauthorized: + return HttpStatus_401_Unauthorized; + default: return HttpStatus_500_InternalServerError; }