import bottle from bottle import route, run @route('/', method='GET') def homepage(): return {'foo' : 'bar'} if __name__=='__main__': bottle.debug(True) run(host='0.0.0.0', port= 8080, reloader = True)
This config will return a json object representing a dict from the main page with an HTTP 200 status code. What do I need to do to return the same content, but, say, with a 202 status code?
source share