from http.client import NO_CONTENT, CREATED
from flask import make_response, jsonify
def no_content():
return make_response(jsonify(""), NO_CONTENT)
def created(obj=None):
return make_response(jsonify(obj if obj is not None else ""), CREATED)