Mercurial > hg > orthanc
comparison Core/HttpClient.cpp @ 2044:0f35383dd6cc
doc
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 23 Jun 2016 17:32:01 +0200 |
parents | 9f61ca1e3eb3 |
children | 21a8ca9ad928 |
comparison
equal
deleted
inserted
replaced
2043:35ccba7adae9 | 2044:0f35383dd6cc |
---|---|
187 case HttpStatus_401_Unauthorized: | 187 case HttpStatus_401_Unauthorized: |
188 case HttpStatus_403_Forbidden: | 188 case HttpStatus_403_Forbidden: |
189 throw OrthancException(ErrorCode_Unauthorized); | 189 throw OrthancException(ErrorCode_Unauthorized); |
190 | 190 |
191 case HttpStatus_404_NotFound: | 191 case HttpStatus_404_NotFound: |
192 throw OrthancException(ErrorCode_InexistentItem); | 192 throw OrthancException(ErrorCode_UnknownResource); |
193 | 193 |
194 default: | 194 default: |
195 throw OrthancException(ErrorCode_NetworkProtocol); | 195 throw OrthancException(ErrorCode_NetworkProtocol); |
196 } | 196 } |
197 } | 197 } |
198 | |
199 | 198 |
200 | 199 |
201 static CURLcode CheckCode(CURLcode code) | 200 static CURLcode CheckCode(CURLcode code) |
202 { | 201 { |
203 if (code == CURLE_NOT_BUILT_IN) | 202 if (code == CURLE_NOT_BUILT_IN) |