sentry-python
sentry-python copied to clipboard
FastAPI integration not capturing error status codes
Say we have a FastAPI application where we raise an error with a specific status code:
@app.get("/")
async def divide_by_zero():
raise HTTPException(status_code=500)
This status code is missing in Sentry:
Other server frameworks (e.g. Bottle) also seem to be affected. We should investigate whether this might be a more widespread issue.