 
   __check_inputs : () ->
     err = core.check_template @input_template(), @input, "HTTP"
+    if err?
+      err.sc = sc.INPUT_ERROR
     return err 
 
   #------

  __handle_input : (cb) ->
    @input = @req.body
    @__set_out_encoding()
    if (err = @__check_inputs())? then @set_error sc.INPUT_ERROR, err.message
    else @set_ok()
    cb err

  #------


  set_error : (code, desc = null, fields = null) ->
    @oo.status = make_status_obj code, desc, fields

  #-----------------------------------------

