FastAPI - Error Handling
Given this middleware code, what will be the response if a KeyError is raised inside the app?
```python
@app.middleware('http')
async def catch_exceptions(request: Request, call_next):
try:
response = await call_next(request)
return response
except KeyError:
return JSONResponse(status_code=400, content={'error': 'Key not found'})
```
