@staticmethod<EOL><INDENT>def response(code, **kwargs):<DEDENT>
_ret_json = jsonify(kwargs)<EOL>resp = make_response(_ret_json, code)<EOL>resp.headers["<STR_LIT:Content-Type>"] = "<STR_LIT>"<EOL>return resp<EOL>
Generic HTTP JSON response method

:param code: HTTP code (int)
:param kwargs: Data structure for response (dict)
:return: HTTP Json response