Add status code

This commit is contained in:
38elements 2016-11-26 15:21:57 +09:00
parent d8e480ab48
commit 9010a6573f

View File

@ -16,6 +16,6 @@ async def test(request):
@app.exception(RequestTimeout) @app.exception(RequestTimeout)
def timeout(request, exception): def timeout(request, exception):
return text('RequestTimeout from error_handler.') return text('RequestTimeout from error_handler.', 408)
app.run(host='0.0.0.0', port=8000) app.run(host='0.0.0.0', port=8000)