comparison Core/RestApi/RestApiOutput.cpp @ 1172:059391d3f8df db-changes

integration mainline->db-changes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 22 Sep 2014 13:44:08 +0200
parents 0561f2087cc9
children 7d2c8d28ad87
comparison
equal deleted inserted replaced
1162:1ea4094d077c 1172:059391d3f8df
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