view.py
view.py copied to clipboard
More detailed error 400's
trafficstars
Right now, it just says "Bad Request". Some other information could probably be added (at least for debug mode).
Example API, could integrate with #95
from view import new_app
app = new_app()
@app.get("/")
async def index():
...
@app.error(400)
@context
async def error(ctx: Context):
...
Partially implemented by #137