se-hub/SE_API/Respones_Utils.py

15 lines
427 B
Python
Raw Normal View History

2015-06-11 17:59:40 +00:00
__author__ = 'Aran'
from flask import Response
import json
def bad_request():
return Response(response=json.dumps({'message': 'Bad Request'}),
status=400,
mimetype="application/json")
def forbidden(message={'message': 'Forbidden'}):
return Response(response=json.dumps(message),
status=403,
mimetype="application/json")