for web service errors, set warning header instead of returning RestError object