Skip to content

Replace HTTPException with JSONResponse for consistent error hand…#364

Merged
eva-1729 merged 2 commits into
mainfrom
fix_livedata_middleware
May 11, 2026
Merged

Replace HTTPException with JSONResponse for consistent error hand…#364
eva-1729 merged 2 commits into
mainfrom
fix_livedata_middleware

Conversation

@keiranjprice101

Copy link
Copy Markdown
Collaborator

HTTPExceptions will always have a 500 status code if raised inside a middleware, unlike a route. This instead returns a JSONResponse to guarantee the correct status code

@keiranjprice101 keiranjprice101 force-pushed the fix_livedata_middleware branch from ce4a106 to 9469ab6 Compare May 11, 2026 10:54

@eva-1729 eva-1729 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All tests pass and makes sense logically

@eva-1729 eva-1729 merged commit eb7e187 into main May 11, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants