Skip to content

📝 Update HTTPException details in docs/en/docs/tutorial/handling-errors.md#5418

Merged
tiangolo merged 3 commits intofastapi:masterfrom
papb:patch-1
Jan 15, 2024
Merged

📝 Update HTTPException details in docs/en/docs/tutorial/handling-errors.md#5418
tiangolo merged 3 commits intofastapi:masterfrom
papb:patch-1

Conversation

@papb
Copy link
Copy Markdown
Contributor

@papb papb commented Sep 22, 2022

This PR updates an outdated comparison between Starlette's and FastAPI's HTTPException.

The current docs became outdated when Starlette was upgraded to 0.19.0 which included this change.

In fact, FastAPI's own version of HTTPException almost became unnecessary, but @tiangolo caught a little difference regarding a type hint.

Related discussion in Starlette: Kludex/starlette#1865

Update outdated comparison between Starlette's and FastAPI's `HTTPException`
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 22, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (cf73051) 100.00% compared to head (1a56230) 100.00%.
Report is 1040 commits behind head on master.

❗ Current head 1a56230 differs from pull request most recent head 34764b7. Consider uploading reports for the commit 34764b7 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #5418   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          540       540           
  Lines        13969     13934   -35     
=========================================
- Hits         13969     13934   -35     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions
Copy link
Copy Markdown
Contributor

📝 Docs preview for commit 1a56230 at: https://632cf15be9447700626b28e6--fastapi.netlify.app

@github-actions
Copy link
Copy Markdown
Contributor

📝 Docs preview for commit f2d4477 at: https://639cdc3c04b775009f17a4e4--fastapi.netlify.app

@tiangolo tiangolo changed the title Update outdated info in handling-errors tutorial 📝 Update HTTPException details in docs/en/docs/tutorial/handling-errors.md Jan 15, 2024
@tiangolo tiangolo added docs Documentation about how to use FastAPI and removed investigate labels Jan 15, 2024
@tiangolo
Copy link
Copy Markdown
Member

Good point about the text update, thanks @papb! 🔍

@tiangolo tiangolo enabled auto-merge (squash) January 15, 2024 15:13
@tiangolo tiangolo merged commit cf01195 into fastapi:master Jan 15, 2024
nilslindemann pushed a commit to nilslindemann/fastapi that referenced this pull request Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation about how to use FastAPI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants