FastAPI 0.140.13: Fixes SSE/JSONL status code, improves docs
sdkmediapython-web
patch
FastAPI version 0.140.13 addresses a bug where the `status_code` parameter was not respected for Server-Sent Events (SSE) and JSONL streaming endpoints. This patch also includes documentation improvements, specifically correcting the rendering of terminators in `format_sse_event` docstrings and adding an API reference page for `fastapi.sse`. The release focuses on bug fixes and documentation enhancements for developers using SSE or JSONL streaming.
- →🐛 Fix status_code being ignored for SSE and JSONL streaming endpoints. PR #15937 by @SAURABHSALVE
- →📝 Fix format_sse_event docstring rendering of \n\n terminator. PR #15613 by @AshNicolus
- →📝 Add API reference page for fastapi.sse. PR #15930 by @SAURABHSALVE
Fixes (1) ›
- 🐛 Fix status_code being ignored for SSE and JSONL streaming endpoints. PR #15937 by @SAURABHSALVE
Maintenance (2) ›
- 📝 Fix format_sse_event docstring rendering of \n\n terminator. PR #15613 by @AshNicolus
- 📝 Add API reference page for fastapi.sse. PR #15930 by @SAURABHSALVE
Read the original announcement →
https://github.com/fastapi/fastapi/releases/tag/0.140.13
Related releases
- PyCharm License Discount for Django Software Foundation Extended Django Weblog ·
- Django Software Foundation Seeks Volunteers for Fundraising Working Group Django Weblog ·
- Django 6.1.1 bugfix release addresses reported issues Django Weblog ·
- DSF Names Benjamin Balder Bach Member of the Month for August 2026 Django Weblog ·
- Djangonaut Space Opens Applications for Session 7 Mentorship Program Django Weblog ·
- Django Software Foundation Releases 2026 Developer Survey Results Django Weblog ·