API Flask Abort
from flask_restplus import abort
abort(400, custom='value')
Depressed Dunlin
from flask_restplus import abort
abort(400, custom='value')
abort(404) # 404 Not Found
abort(Response('Hello World'))