Mercurial > hg > orthanc
comparison Core/RestApi/RestApiOutput.cpp @ 1165:0561f2087cc9
Fix reporting of errors in Orthanc Explorer when sending images to peers/modalities
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 18 Sep 2014 17:48:55 +0200 |
parents | ba5c0908600c |
children | 7d2c8d28ad87 |
comparison
equal
deleted
inserted
replaced
1164:0a55d8eb194e | 1165:0561f2087cc9 |
---|---|
127 } | 127 } |
128 | 128 |
129 void RestApiOutput::SignalError(HttpStatus status) | 129 void RestApiOutput::SignalError(HttpStatus status) |
130 { | 130 { |
131 if (status != HttpStatus_403_Forbidden && | 131 if (status != HttpStatus_403_Forbidden && |
132 status != HttpStatus_500_InternalServerError && | |
132 status != HttpStatus_415_UnsupportedMediaType) | 133 status != HttpStatus_415_UnsupportedMediaType) |
133 { | 134 { |
134 throw OrthancException("This HTTP status is not allowed in a REST API"); | 135 throw OrthancException("This HTTP status is not allowed in a REST API"); |
135 } | 136 } |
136 | 137 |