code: def response(code, **kwargs):
          
          _ret_json = jsonify(kwargs)
          resp = make_response(_ret_json, code)
          resp.headers["Content-Type"] = "application/json; charset=utf-8"
          return resp
docs: Generic HTTP JSON response method
  
          :param code: HTTP code (int)
          :param kwargs: Data structure for response (dict)
          :return: HTTP Json response