Add status code
This commit is contained in:
parent
d8e480ab48
commit
9010a6573f
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user